Problem with tests over ssh backend

Howdy,
I just created a simple test to check for a few services running:
def test_passwd_file(File):
  passwd = File("/etc/passwd")
  assert passwd.contains("root")
  assert passwd.user == "root"

def test_nimsoft(Service):
  nimsoft = Service("nimbus")
  assert nimsoft.is_running

def test_uxauthd(Service):
  uxauthd = Service("uxauthd")
  assert uxauthd.is_running

def test_sshd(Service):
  sshd = Service("sshd")
  assert sshd.is_running

If I attempt to check a host via ssh, I'm told the services are failed. But if I copy the file to the remote host, install testinfra, and run it locally, everything passes:
$ testinfra --connection=ssh<EMAIL_ADDRESS>--sudo test_integrations.py
======================= test session starts =
platform linux -- Python 3.5.0+, pytest-2.8.3, py-1.4.31, pluggy-0.3.1
rootdir: /home/xian/work/validater, inifile:
plugins: testinfra-<IP_ADDRESS>a16
collected 4 items

test_integrations.py .FFF

================== FAILURES =======
_____________________________ test_nimsoft[ssh://evprappbpwl01.domain.name] ____

Service = <service None>

    def test_nimsoft(Service):
      nimsoft = Service("nimbus")
>     assert nimsoft.is_running
E     assert <service nimbus>.is_running

test_integrations.py:8: AssertionError
____________________ test_uxauthd[ssh://evprappbpwl01.domain.name]

Service = <service None>

    def test_uxauthd(Service):
      uxauthd = Service("uxauthd")
>     assert uxauthd.is_running
E     assert <service uxauthd>.is_running

test_integrations.py:12: AssertionError
_______________________ test_sshd[ssh://evprappbpwl01.domain.name]

Service = <service None>

    def test_sshd(Service):
      sshd = Service("sshd")
>     assert sshd.is_running
E     assert <service ssh>.is_running

test_integrations.py:16: AssertionError
========================= 3 failed, 1 passed in 2.51 seconds

Versus running it on the host
[hcladmin@evprappbpwl01 ~]$ testinfra --sudo test_integrations.py
=========== test session starts =============================
platform linux2 -- Python 2.6.6, pytest-2.8.3, py-1.4.31, pluggy-0.3.1
rootdir: /home/hcladmin, inifile:
plugins: testinfra-<IP_ADDRESS>a16
collected 4 items

test_integrations.py ....

======================= 4 passed in 0.78 seconds ===========

Thanks!

Hi, can you test with -vvvsx options ?
Maybe there is an hidden error related to ssh or sudo.

Have you the same error with --connection=paramiko ?

Here you are...
xian@xian-work:~/work/validater$ testinfra --connection=ssh<EMAIL_ADDRESS>--sudo -vvvsx test_integrations.py
============================= test session starts =======
platform linux -- Python 3.5.0+, pytest-2.8.3, py-1.4.31, pluggy-0.3.1 -- /usr/bin/python3.5
cachedir: .cache
rootdir: /home/xian/work/validater, inifile:
plugins: testinfra-<IP_ADDRESS>a16
collecting 0 itemsIgnored argument: connection = ssh
Ignored argument: ansible_inventory = None
collected 4 items

test_integrations.py::test_passwd_file[ssh://evprappbpwl01.domain.name] PASSED
test_integrations.py::test_nimsoft[ssh://evprappbpwl01.domain.name] FAILED

========================================= FAILURES ======
_______ test_nimsoft[ssh://evprappbpwl01.domain.name] ___

Service = <service None>

    def test_nimsoft(Service):
      nimsoft = Service("nimbus")
>     assert nimsoft.is_running
E     assert <service nimbus>.is_running

test_integrations.py:8: AssertionError
!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================= 1 failed, 1 passed in 2.15 seconds ===========

and it appears to be the same with paramiko
xian@xian-work:~/work/validater$ testinfra --connection=paramiko<EMAIL_ADDRESS>--sudo -vvvsx test_integrations.py
============ test session starts =====================
platform linux -- Python 3.5.0+, pytest-2.8.3, py-1.4.31, pluggy-0.3.1 -- /usr/bin/python3.5
cachedir: .cache
rootdir: /home/xian/work/validater, inifile:
plugins: testinfra-<IP_ADDRESS>a16
collecting 0 itemsIgnored argument: ansible_inventory = None
Ignored argument: connection = paramiko
collected 4 items

test_integrations.py::test_passwd_file[paramiko://evprappbpwl01.domain.name] /usr/local/lib/python3.5/dist-packages/paramiko/client.py:645: UserWarning: Unknown ssh-rsa host key for evprappbpwl01.domain.name: b'f9397b36b08b54ac90631bb5319a0ce5'
  (key.get_name(), hostname, hexlify(key.get_fingerprint())))
PASSED
test_integrations.py::test_nimsoft[paramiko://evprappbpwl01.domain.name] FAILED

================= FAILURES ==================
_______________ test_nimsoft[paramiko://evprappbpwl01.domain.name]_______________________

Service = <service None>

    def test_nimsoft(Service):
      nimsoft = Service("nimbus")
>     assert nimsoft.is_running
E     assert <service nimbus>.is_running

test_integrations.py:8: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================= 1 failed, 1 passed in 1.03 seconds =====

I've got the passwd file tests in there, and they always pass. So it seems to be related to the service check.

Yep. This can be related to python 3.5 too.
What is your target distribution ? And do you use systemd, sysv or upstart ?

Can you paste the output of:
service nimbus status; echo $? and systemctl is-active nimbus; echo $?

It can also be an issue with $PATH, ssh and sudo. I see that sudo exit with a status code 1 when the command cannot be found in $PATH.

I'm attempting to run the tests on a RHEL 6.5 machine from my desktop (which is current kubuntu)
I'm pretty sure all the services that I'm attempting to monitor are launched from the sysv compatibility layer of upstart.
$ sudo service nimbus status; echo $?
NIMBUS_USER: root
NIMBUS_ROBOT_ROOT: /opt
nimbus (pid 2122) is running...
0

Since this is rhel 6, there is no systemd, so I don't have systemctl.
As far at PATH goes, I'd think having testinfra ssh to run sudo would be the same as my doing it manually. Also, when I ran the tests locally, they succeeded.
In case the python stack trace might help narrow down any issues, I've pasted it here: http://pastebin.com/dS6YEAvy

Ok, so the command that testinfra try to run is:
ssh<EMAIL_ADDRESS>sudo service nimbus status; echo $?
Is this command running successfully from your desktop ?

Ah ah! Interestingly enough, it fails:
$ ssh<EMAIL_ADDRESS>sudo service nimbus status; echo $?
      --------------------------------------------------------------------------
     BANNER
      --------------------------------------------------------------------------
sudo: service: command not found
1

While fully ssh'ing to the machine, then running the commands work
$ ssh<EMAIL_ADDRESS>      --------------------------------------------------------------------------
    BANNER
      --------------------------------------------------------------------------
Last login: Tue Dec  1 19:08:57 2015 from xian-work.domain.name
[hcladmin@evprappbpwl01 ~]$ sudo service nimbus; echo $?
NIMBUS_USER: root
NIMBUS_ROBOT_ROOT: /opt
Starting NimBUS:

0

I just edited service.py to hardcode service as /sbin/service, and now the tests pass. So it now works for me.
Thanks!

Yeah it's an issue with $PATH and ssh.
Is this command running successfully ?
ssh<EMAIL_ADDRESS>sudo /bin/sh -c 'service nimbus status'; echo $?

I had some similar problems while developing ansible playbooks under Ubuntu 14. I solved this with using "sudo -E":
-E, --preserve-env
                 Indicates to the security policy that the user wishes to preserve their existing environment variables.  The security policy may return an error if the user does not have per‐
                 mission to preserve the environment.

I think you can also fix it by adding /sbin and /usr/sbin in your PATH (via .profile or .bashrc).
What I dislike with the current beharvior is that sudo return an error code 1 instead of 127. Testinfra make a strict verification of exit codes and will raise an error like "Unexpected exit code 127: sudo: service: command not found". Using sudo /bin/sh -c 'COMMAND' seems the better way to handle this properly.

Thanks all.
I didn't have any luck with that sh -c command, nor with -E. But was able to get it going with additional quoting:
$ ssh<EMAIL_ADDRESS>sudo '/bin/sh -c "service nimbus status; echo $?"'

Without the wrapping single quotes, sudo just ran the command /bin/sh -c service, where service then only posted usage info.

That's actually how -c works:

-c string If the -c option is present, then commands are read from string.  If there  are  arguments  after  the string, they are assigned to the positional parameters, starting with $0.

The space by default will be interpreted as the end of the string, field separator. So -c would only see service.

Ok thanks. I'll try to reproduce the issue ASAP and make the appropriate fix.

Hi @mchugh19
Can you test #42 and tell me if it's solve your issue ?
pip install -U 'git+https://github.com/philpep/testinfra@wip-sudo#egg=testinfra'
NB: Seems the path used with sudo is controled by the secure_path parameter. In my patch I use sudo /bin/sh so I think the good PATH will come from /bin/sh.

Didn't get to this until the branch was already merged, but it looks good now.
Thanks!

I may have spoken too soon. Looks like this corrects the problem for RHEL 6.5, but 5.11 still throws "service: command not found" errors.
Even manually ssh'ing into RHEL 5, and running sudo service blah status, doesn't work, but running sudo -s; . /etc/profile; service blah status, does.
I'm not aware of a linux distro (too out of touch to comment on BSD) that provides service in any directory besides /sbin. So I think that hardcoding the path might be a way forward for older RHEL at least.

I'm pretty happy with the beharvior right now. At least It will raise an error "Unexpected exit code 127: service: command not found". Hardcoding the path would be ugly (lots of command like service in [...]/sbin). This can be fixed with a proper sudo configuration (secure_path) or with shell configuration.


Why Wordpress instance in private subnet? How the clients connect to the website?

Hi @mateusrangel ,
Did you work out the answer?
AWS best practices for highly available secure websites/applications is to use an auto scaling group with an elastic load balancer in front of it. The instances that are stood up are in a private subnet to ensure hackers's have limited visibility of the server and the only entry point is via a vetted load balancer. This means that if there was a miss-configuration on the security group or network acl or software firewall inside the server, it won't be fully open to the internet.
This may be helpful to you. https://d1.awsstatic.com/whitepapers/AWS_Cloud_Best_Practices.pdf
regards,
William


DBZ-2865 Regression in warning message cleanup

https://issues.redhat.com/browse/DBZ-2865

Build failure tracked via DBZ-3107


Documentation

If this library is intended to be developed by various developers, a better documentation (both comments in the source and external text files) should be developed. Perhaps a raw txt in which a TODO list is proposed and a DESIGN decisions file, just to know why important parts of code are done in the way they are actually done.

+1

+1

+1


fips: Add a build time option to disable FIPS 186-4 type parameters

FIPS 186-4-style FCC params in DH are approved for use, but are marked
as "legacy-use" only. Add compile-time option to build FIPS provider
without support for them.
When configured without fips186-4-fcc, disable validation of any DH
parameters that are not well-known groups, and remove DH parameter
generation completely.
Adjust tests to use well-known groups or larger DH groups where this
change would now cause failures, and skip tests that are expected to
fail in such configuration.
Upgrading tests to use larger DH groups imho should be done in
general. Humans will read the comment and correctly adjust the code,
but LLM might not. Thus its safer to use larger DH groups, even in
tests.
This is inspired by:

https://gitlab.com/redhat/centos-stream/rpms/openssl/-/blob/c9s/0093-DH-Disable-FIPS-186-4-type-parameters-in-FIPS-mode.patch

Based on code by:
Co-authored-by: Clemens Lang<EMAIL_ADDRESS>

Addressed all feedback, and rebased.

This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago


Looker AI Explorer

You are applying for validated OSS program

[X] My project is OSS licensed and open to public. (Must have LICENSE file)
[X] My project has more than 5 ⭐stars on Github, which is the required for this program.

Repository URL to your project
https://github.com/bytecodeio/ai-three
URL to your website
No response
Expected Quota of usage
less than 1K per year
Details
- Category:
- License:
- Date of release:

Anything else?
No response

Hi. The link you provided seems unreachable
Please re-open the issue with a valid public repo url.
Thank you

Sorry, I had it open but then Slack removed the key. Been having problems
writing from this app to slack without using this cors proxy. Thanks again!
On Tue, Jan 23, 2024, 5:20 AM Universe @.***> wrote:

Hi. The link you provided seems unreachable
Please re-open the issue with a valid public repo url.
Thank you
—
Reply to this email directly, view it on GitHub
https://github.com/gridaco/cors.sh/issues/106#issuecomment-1905732210,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADMLQGDEUCJM3HZF3YZAC7TYP6FH7AVCNFSM6AAAAABCFOK6BWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVG4ZTEMRRGA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Disable form inputs and fix html glitch when loading wallet files

When you click the Decrypt button on the login form, currently it hides the login button and shows a loading spinner.  This causes the form elements to nudge up the page about 10 pixels which looks strange.  This PR uses the visibility CSS class to keep the form in place and disables inputs rather than hiding them.

Hey,
Adding [attr.disabled]="isDecrypting" doesn't appear to work.  Instead I think its probably clearer if we use [attr.disabled]="isDecrypting ? 'disabled' : null" which still works, but makes more sense to read.

There is actually a [disabled] directive in Angular, why not use that instead of [attr.disabled]. That one bind to boolean

Look ok to me. However, I haven't run it locally. I will let @dev0tion to check and approve.

@dev0tion Can you please check this?

@herbepau can yo please check this?


Unwanted PERMISSIONS added automatically

In the latest release, these permissions are added automatically to AndroidManifest.xml:

I don't want to bother my users with asking for these unnecessary permissions.
How can avoid getting these permissions added automatically?

Which permissions do you mean? Firebase needs certain permissions to function so they are not "unnecessary"

I have pasted them but they disappeared... so here they are again:
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.READ_PHONE_STATE
android.permission.READ_EXTERNAL_STORAGE

These permissions were not added in previous versions... but now they are. Can I get rid of them?

Same issue here, downgrading to old plugin version doesn't fix it.
The new permissions such as READ_PHONE_STATE are still there.

Same here.
I've looked a bit and it's seems that a the za.co.twyst package have a minSdkVersion < 4
ADDED from [com.google.firebase:firebase-auth:11.8.0] C:\www\ionic-agenda\platforms\android\build\intermediates\exploded-aar\com.google.firebase\firebase-auth\11.8.0\AndroidManifest.xml:24:13-85
android:uses-permission#android.permission.READ_PHONE_STATE
IMPLIED from C:\www\ionic-agenda\platforms\android\AndroidManifest.xml:2:1-73:12 reason: za.co.twyst has a targetSdkVersion < 4

In the za.co.twyst Manifest the minSdkVersion is indeed < 4
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="za.co.twyst"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="1" />

</manifest>

Tried some hooks to remove the permission but without success
I've also tried to edit the config.xml to add (with the correct xmlns)
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove">

But i'm still having this issue. I'm running out of idea.

Do you use cordova-plugin-googlemaps? I am and it had caused me this problem.
tbxml-android.aar is present in platform/android/libs/tbxml-android.aar

unzip it
unzip -d XYZ platform/android/libs/tbxml-android.aar
Modify the following line. "XYZ/AndroidManifest.xml"
<uses-sdk android:minSdkVersion="1" />
to
<uses-sdk android:minSdkVersion="4" />
In this i used 4. Actually I've changed this number to 16, since I don't need support for < 16.
rezip all the files. In XYZ execute the following command. It will create tbxml-android.zip

zip tbxml-android *

replace the original tbxml-android with the new file
cp XYZ/tbxml-android.zip platform/android/libs/tbxml-android.aar

This fix should be probably done in googlemaps repository, so we don't have to hack it like this :'(

Not sure there is a fix we can apply here.  Please reopen and submit a PR if there is something we can do to fix this.


Include git by default in python-builder

We can reduce the runtime install of git, for the assemble script, and
ship git by default.
This should cut down on the need to install it everytime we want to
build a python package.
Signed-off-by: Paul Belanger<EMAIL_ADDRESS>

Pull-request updated, HEAD is now 4eb5268c870ef3d781460893dec4e79bf5140d5e

Pull-request updated, HEAD is now 4eb5268c870ef3d781460893dec4e79bf5140d5e

Pull-request updated, HEAD is now ca62e73e096e23e8c79bb2445f8e78743faf6ab9

Pull-request updated, HEAD is now ca62e73e096e23e8c79bb2445f8e78743faf6ab9


Enhance automation to validate that demo repos are up-to-date with Trestle

Issue description / feature objectives
We have several demo repositories that showcase Trestle functionality. The demo repositories contain scripts and Jinja templates that depend on the Trestle internal and CLI functionality.
When changes are done to Trestle codebase some Jinja templates need to be updated and some Makefiles need to have commands updated.
At the moment it is done manually which could cause Demo repositories to be "outdated" and to not work properly.
The task is to extend existing automation to notify developer if their change breaks the demo repositories and that the demo needs to be updated.
As part of this task, developer should decide whether to fail PR completely until the changes are done or simply notify/create an issue that changes will break demos allowing PR author to fix it after the PR is merged.

As per discussion we decided to fix the demo's Trestle version for now


Bug: missing cells from sow tab 7

Missing import on column K rows 1046 and 1048 from SOW tab 7 part 1 detailed budget.

Closing as this was fixed in #1750


Icon Mask Settings

it would really good to enable/disable iconmask and picking different iconmask from dropdown menu

Not possible, icon mask settings store in xml. Xml can't be modified in runtime. Unless the launchers changed the way they store icon mask settings, it will not possible.


 These changes are not supposed to break anything and follow the same reasoning from https://github.com/cilium/cilium/pull/1801 The goal of these changes is to make debugging via logs easier by making our usage more consistent. Ideally, field names should be used the same way throughout the code and mean the same thing.
The most important things to review are whether the field names make sense in the context they're used, and whether we should introduce new ones to pkg/logfields/logfields.go. I'm also happy to incorporate better messages into this PR :)

ok, @tgraf rebased and I made changes to the kafka files too. Please re-review.
@cilium/proxy Does anyone have any objections to these changes? they are mostly stylistic (but that's usually the most contentious ;) )


Add support for loading UTF16 encoded files

Add support for loading UTF16 encoded files if they have a correct BOM (Byte-Order-Mark https://en.wikipedia.org/wiki/Byte_order_mark) at the beginning of the file. Falls back on UTF8 encoding, if no understandable BOM is present.
This is dependent on go-yaml support, utf8, utf16LE and utf16BE. see: https://github.com/kubernetes-sigs/kustomize/blob/7c36ed21b3587e7124326743a888db5374e86d93/kyaml/internal/forked/github.com/go-yaml/yaml/readerc.go#L181C4-L181C4

I have tested this with an utf16-LE encoded yaml without a prepended BOM. Windows programs sometimes do that...
Well it fails with failed to decode Kubernetes YAML from testdata/nokustomization/utf16le/secret.yaml: MalformedYAMLError: yaml: control characters are not allowed. This is to be expected as we prepend utf8 BOM when it is missing.
This is not perfect but it is still better than the actual behaviour where it silently drop those files, because it provides an actionable error.
Note that it is a breaking change because running workload  containing utf16-LE without BOM will start erroring.

I have tested this with an utf16-LE encoded yaml without a prepended BOM. Windows programs sometimes do that...
Well it fails with failed to decode Kubernetes YAML from testdata/nokustomization/utf16le/secret.yaml: MalformedYAMLError: yaml: control characters are not allowed. This is to be expected as we prepend utf8 BOM when it is missing.

I manually reverted your changes to kustomize_generator.go and ran the new test case and it passes. What am I missing?

I have tested this with an utf16-LE encoded yaml without a prepended BOM. Windows programs sometimes do that...
Well it fails with failed to decode Kubernetes YAML from testdata/nokustomization/utf16le/secret.yaml: MalformedYAMLError: yaml: control characters are not allowed. This is to be expected as we prepend utf8 BOM when it is missing.

I manually reverted your changes to kustomize_generator.go and ran the new test case and it passed. What am I missing?

Yes you are right, but in practice we have seen that it drops silently those files. I have to dig deeper. Let me put this on draft.


Check master versions of all sims

We have run into a couple of cases recently where the master version of a sim, i.e. the version shown in package.json, is behind what it should be due to some pre-chipper-2.0 phet-io releases.  Issue https://github.com/phetsims/john-travoltage/issues/297 is an example of this, and @pixelzoom also reported that it was a problem for concentration.  It would be good to go through all sims and make sure that the versions shown in package.json is correct.
@KatieWoe - feel free to stop by and discuss with me if you need more info.

@phet-steele - I just briefed @KatieWoe on it, and I think it would be good for her, since it will help to familiarize her with our version numbering scheme.

Alright, I found and made phetsims/make-a-ten/issues/286 before reading that @KatieWoe is taking over. I'll stop there (I was NOT going alphabetical).

Making a checklist of versions to check:
@phet-steele no problem.  Just made a checklist of versions to check.  Would you mind marking any that you have confirmed?

[ ] acid-base-solutions
[ ] area-builder
[ ] area-model-algebra
[ ] area-model-counting
[ ] area-model-decimals
[ ] area-model-introduction
[ ] area-model-multiplication
[ ] arithmetic
[ ] atomic-interactions
[ ] baa-iframe-demo
[ ] balancing-act
[ ] balancing-chemical-equations
[ ] balloons-and-static-electricity
[ ] beaker
[ ] beers-law-lab
[ ] bending-light
[ ] blackbody-spectrum
[ ] blast
[ ] build-a-fraction
[ ] build-a-molecule
[ ] build-an-atom
[ ] bumper
[ ] button-test
[ ] buttons
[ ] capacitor-lab-basics
[ ] capacitor-lab
[ ] chains
[ ] charges-and-fields
[ ] chipper
[ ] circuit-construction-kit-basics
[ ] circuit-construction-kit-black-box-study
[ ] circuit-construction-kit-black-box
[ ] circuit-construction-kit-dc-virtual-lab
[ ] circuit-construction-kit-dc
[ ] color-vision
[ ] concentration
[ ] coulombs-law
[ ] curve-fitting
[ ] deploy-dev-tests
[ ] diagram-demo
[ ] energy-forms-and-changes
[ ] energy-skate-park-basics
[ ] energy-skate-park
[ ] equality-explorer-basics
[ ] equality-explorer-two-variables
[ ] equality-explorer
[ ] estimation
[ ] example-sim
[ ] expression-exchange
[ ] faraday
[ ] faradays-law
[ ] fluid-pressure-and-flow
[ ] forces-and-motion-basics
[ ] fraction-comparison
[ ] fraction-matcher
[ ] fractions-equality
[ ] fractions-intro
[ ] fractions-mixed-numbers
[ ] friction
[ ] function-basics
[ ] function-builder-basics
[ ] function-builder
[ ] gene-expression-essentials
[ ] graphing-lines
[ ] graphing-quadratics
[ ] graphing-slope-intercept
[ ] gravity-and-orbits
[ ] gravity-force-lab-basics
[ ] gravity-force-lab
[ ] hookes-law
[ ] interaction-dashboard
[ ] isotopes-and-atomic-mass
[ ] jb-tests
[ ] jg-tests
[ ] john-travoltage
[ ] least-squares-regression
[ ] lightbulb
[ ] lingo
[ ] make-a-ten
[ ] making-tens
[ ] masses-and-springs
[ ] models-of-the-hydrogen-atom
[ ] molarity
[ ] molecule-polarity
[ ] molecule-shapes-basics
[ ] molecule-shapes
[ ] molecules-and-light
[ ] neuron
[ ] ohms-law
[ ] optics-lab
[ ] pendulum-lab
[ ] ph-scale-basics
[ ] ph-scale
[ ] phet-io-wrapper-sonification
[ ] phet-io-wrapper-visualizing-engagement
[ ] phet-io
[ ] phet-metacog
[ ] plinko-probability
[ ] projectile-motion
[ ] proportion-playground
[ ] protein-synthesis
[ ] reactants-products-and-leftovers
[ ] resistance-in-a-wire
[ ] rutherford-scattering
[ ] samreid
[ ] scenery-phet
[ ] seasons
[ ] smorgasbord
[ ] states-of-matter-basics
[ ] states-of-matter
[ ] sugar-and-salt-solutions
[ ] sun
[ ] tambo
[ ] test-dir
[ ] together
[ ] trig-tour
[ ] under-pressure
[ ] unit-rates
[ ] vegas
[ ] wave-interference
[ ] wave-on-a-string
[ ] wilder

@KatieWoe a handful of these are not sims, are you meant to check them?

I asked @jbphet and he said that it could be useful, so I should while I'm at it.

Update, several of those commits were made in error, due to a misunderstanding on my part.  They should be fixed now.  Sorry about that.

Finished.  Most fixes were done in commits.  One was made into an issue.  Unchecked italics items were ones that I was unsure how to handle, mostly non-sims.

Thanks for your efforts on this @KatieWoe, and I think that should do it for now.  I looked through the unaddressed items in the list, and I think we can just deal with them on a case-by-case basis if something needs to be republished from that repo. Closing.


FeatureBee with (micro) services

A quick question.
I've read one of the AutoScout24 blog posts that mentioned you were moving to microservices.
Does FeatureBee play nicely in this environment?
For instance say I want to turn a feature on for a given user in service A
The initial request from the user hits service B. Service B calls service A for some information and it's here we want the new feature to kick in. How does Service B get the context it needs to evaluate the state of the feature?
Hope I've described that in a way that makes sense.

The quick answer is no. FeatureBee plays best when you have a single (monolithic) web application.
Right now we are at the beginning on our journey to microservices. Have a look on our new Tech-Blog for more information. As we are already addicted to release features fast and easy I guess we'll come up with a solution when we need it. Unfortunately at the moment I can't say when and how it would look like.

Thanks. Had a quick look at your blog and it sounds like it will look like something based on the JVM!
A bold decision (and I think the right one). Good luck.


Support fastest, default, and smallest modes

Looking at your code you only use the default mode which does compress JS and CSS but doesn't do it aggressively to get the smallest size. There is also a fastest constructor which only compresses HTML and ignores the rest. And a smallest which goes after the smallest possible size with the available compressors. Maybe an extra option could expose this to your users?

Oh I didn't even knew about those option! How should I use them, I didn't found any info in your doc.

Yeah I'll be updating the docs soon :zipper_mouth_face: .  My suggestion would be to keep the current the default and add an option for both fastest and smallest. The smallest brings a bit more risk with it since there is currently no checking on valid CSS and JS.

Yep I tough the same about default.
Could you tell me now how to use fastest and smallest? (I'm motivated to do it now haha)

Call constructSmallest or constructFastest instead of construct on the factory.

easy 😄 !

Just did it but still not compressing JSON-LD, even with smallest, any idea why? It's working on your side?

@WyriHaximus I've just update the code (you can check develop branch).
But still, it's not compressing JSON-LD, even with smallest setting... Any idea why it's not working?


Download and import curated packages package bundle by default

Description of changes:

Fetch curated packages bundle by default since it is needed by package controller to function properly.
Testing (if applicable):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/hold on testing

/cherry-pick release-0.12

/unhold


Library - Added documentation on updating version numbers

Fixes #
Changes proposed in this pull request:

Just a minor documentation update, explaining where and how to update the version numbers to avoid warnings

you wanna add that previous comment from @zippy1981 before I merge, @FriedrichWeinmann ?

Probably a good idea, sec

Alright, updated it. TEST IT FIRST on that win7 smo2008!

k brb

so far, im getting no results from Get-DbaDatabase. Continuing to work it. I believe this occured during the last patch, @FriedrichWeinmann

Um, the instanceparameter works for server objects now or is it still throwing?
Get-DbaDatabase is an entirely different thing - didn't touch that

i think it may be messing with connect-sqlinstance

trying other commands to see if anything works 🤔

Yep, it works! Thank you 🏆  Get-DbaDatabase is broken


CMake LibPNG define

Hi,
I compiled GLVis with CMake and noticed screenshots weren't following the build parameters.
In the cmake file https://github.com/GLVis/glvis/blob/master/CMakeLists.txt#L160
The define for libpng should read
 list(APPEND _glvis_compile_defs "GLVIS_USE_LIBPNG")

where GLVIS_USE_PNG -> GLVIS_USE_LIBPNG
Thanks

Good catch. Can you propose a PR?


Add use client directive to support Next.js 13

Description

Adds use client directive to components so that they are treated as client components when using Next.js 13 with React server components.

just a heads up that this is not going to work with radix's current parcel set up.

heads up, i've solved the parcel isue in my slot pr https://github.com/radix-ui/primitives/pull/2205

Any updates?


updated license.rst

Updated copyright, licensing and acknowledgements sections to refer to devicetree.org and Linaro Ltd appropriately
Signed-off-by: Kanta Vekaria<EMAIL_ADDRESS>

Hi Kanta,
Some issues with this pull request. The pull request has 3 commits in it, but they all have the same description, and two of them look like they add unnecessary text. Can you see if you can figure out how to respin the pull request to only contain a single commit with all the changes in it? I can do that from the command line, but I don't know how from the web interface, and it would be useful to know.
Second, small miscommunication: There are some sections of the existing license text that we need to replace. The old text looks like:
A) copyright power.org... (single line)
B) Power architecutre trademarks....
C) THIS POWER.ORG SPECIFICATION IS PROVIDED AS IS...
D) Contact address(IEEE)
We need to:

remove A
add Linaro trademark notice between A & B
keep B
Copy of C with Linaro trademark statement instead of Power.org
Original C
Modify D with Linaro contact info.

So the new copy should be:
B*) Linaro trademarks....
B) Power architecutre trademarks....
C*) THIS SPECIFICATION IS PROVIDED AS IS... LINARO...
C) THIS POWER.ORG SPECIFICATION IS PROVIDED AS IS...
D*) Contact address(Linaro)
Cheers,
g.

Hiya
On 28 April 2016 at 17:46, Grant Likely<EMAIL_ADDRESS>wrote:

Hi Kanta,
Some issues with this pull request. The pull request has 3 commits in it,
but they all have the same description, and two of them look like they add
unnecessary text.

urk. I noticed it looked different but wasn't sure what had happened. I'll
investigate and fix.

Can you see if you can figure out how to respin the pull request to only
contain a single commit with all the changes in it? I can do that from the
command line, but I don't know how from the web interface, and it would be
useful to know.
Second, small miscommunication: There are some sections of the existing
license text that we need to replace. The old text looks like:
A) copyright power.org... (single line)
B) Power architecutre trademarks....
C) THIS POWER.ORG SPECIFICATION IS PROVIDED AS IS...
D) Contact address(IEEE)
We need to:

remove A
add Linaro trademark notice between A & B
keep B
Copy of C with Linaro trademark statement instead of Power.org
Original C
Modify D with Linaro contact info.

So the new copy should be:
B
) Linaro trademarks.... B) Power architecutre trademarks.... C) THIS
SPECIFICATION IS PROVIDED AS IS... LINARO...
C) THIS POWER.ORG SPECIFICATION IS PROVIDED AS IS...
D*) Contact address(Linaro)

I'll do this after a fresh pot of coffee tomorrow :) and screen share with
you before a commit
Thanks
Kanta

Cheers,
g.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/devicetree-org/devicetree-specification/pull/4#issuecomment-215490786


Debugging pylxd.exceptions.ClientConnectionFailed?

I'm trying to connect to an LXD cluster using the steps from this guide but I get a pylxd.exceptions.ClientConnectionFailed error:
>>> from pylxd import Client
>>> client = Client(endpoint='http://<IP_ADDRESS>:8443', cert=('lxd.crt', 'lxd.key'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pylxd/client.py", line 290, in __init__
    raise exceptions.ClientConnectionFailed()
pylxd.exceptions.ClientConnectionFailed

The hosts are on the same subnet (.120 is my host, .121 is the LXD cluster member), ping works, port 8443 is open, the cert files are in place, I can get an answer back with wget:
host_120:~$ ping -q -c 5 <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.

--- <IP_ADDRESS> ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4081ms
rtt min/avg/max/mdev = 0.435/0.691/0.881/0.179 ms

host_121:~$ netstat -an | egrep "8443.*LISTEN"
tcp        0      0 <IP_ADDRESS>:8443    <IP_ADDRESS>:*               LISTEN

host_120:~$ ls lxd.*
lxd.crt  lxd.csr  lxd.key

host_120:~$ wget http://<IP_ADDRESS>:8443/1.0
--2018-07-08 06:10:27--  http://<IP_ADDRESS>:8443/
Connecting to <IP_ADDRESS>:8443... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: '1.0'

1.0                                 [ <=>                                                                        ]       7  --.-KB/s    in 0s

2018-07-08 06:10:27 (339 KB/s) - '1.0' saved [7]

The saved file contains "1503 0100 0202 0a" in hex. I did a capture too: pylxd.pcap.zip
Versions:

OS: Ubuntu 18.04 (Bionic) server
Python: 2.7.15rc1,
pylxd: 2.2.7
LXD: 3.0.1

Is it something with pylxd or the LXD cluster? Is there a way I could get a detailed error message, not just the exception?

Did you try in pylxd with https.  I'm sorry, from you comment, it's not clear to me.

Sorry. Yes, I did:
>>> from pylxd import Client
>>> client = Client(endpoint='https://<IP_ADDRESS>:8443', cert=('lxd.crt', 'lxd.key'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pylxd/client.py", line 290, in __init__
    raise exceptions.ClientConnectionFailed()
pylxd.exceptions.ClientConnectionFailed

Okay, let's eliminate pylxd from the party for a moment.  If you add the https://<IP_ADDRESS>:8443 as a remote to the lxc client, does it work?
The syntax is:
lxc remote add <remote> <IP|FQDN|URL> [--accept-certificate] [--password=PASSWORD]

e.g. lxd remote add mycluster https://<IP_ADDRESS>:8443 --password=<your password>
And then see if you can do things with it: lxc list mycluster:
Also, which versions of lxd and pylxd are you using?

That works.
host_120:~$ lxc remote add mycluster https://<IP_ADDRESS>:8443 --password=xxx
Generating a client certificate. This may take a minute...
Certificate fingerprint: xxxxxx
ok (y/n)? y
Client certificate stored at server:  mycluster

host_120:~$ lxc list mycluster:
+------+---------+------------------------+------+------------+-----------+----------+
| NAME |  STATE  |          IPV4          | IPV6 |    TYPE    | SNAPSHOTS | LOCATION |
+------+---------+------------------------+------+------------+-----------+----------+
| con1 | RUNNING | <IP_ADDRESS> (eth0) |      | PERSISTENT | 0         | lxd1     |
|      |         | <IP_ADDRESS> (eth1)    |      |            |           |          |
|      |         | <IP_ADDRESS> (eth2)      |      |            |           |          |
+------+---------+------------------------+------+------------+-----------+----------+
| con2 | STOPPED |                        |      | PERSISTENT | 0         | lxd2     |
+------+---------+------------------------+------+------------+-----------+----------+

Versions:

OS: Ubuntu 18.04 (Bionic) server
Python: 2.7.15rc1,
pylxd: 2.2.7
LXD: 3.0.1

Okay, that's good.
So, that certificate that got generated is at $HOME/.config/lxc/client.key and $HOME/.config/lxc/client.crt.
You should now be able to connect in pylxd by just doing:
client = Client(endpoint='http://<IP_ADDRESS>:8443')

The problem, I suspect, is that the original cert.key / cert.crt weren't being found.  So if the above does work then we probably need some checks in pylxd about finding certs, etc. as the code in question doesn't seem to do that sanity check.

Same issue, I checked both with http and https:
>>> from pylxd import Client
>>> client = Client(endpoint='http://<IP_ADDRESS>:8443')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/adosztal/.local/lib/python2.7/site-packages/pylxd/client.py", line 290, in __init__
    raise exceptions.ClientConnectionFailed()
pylxd.exceptions.ClientConnectionFailed

>>> client = Client(endpoint='https://<IP_ADDRESS>:8443')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/adosztal/.local/lib/python2.7/site-packages/pylxd/client.py", line 290, in __init__
    raise exceptions.ClientConnectionFailed()
pylxd.exceptions.ClientConnectionFailed

I tried using absolute path, same result:
>>> client = Client(endpoint='https://<IP_ADDRESS>:8443', cert=('/home/adosztal/.config/lxc/client.crt', '/home/adosztal/.config/lxc/client.key'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/adosztal/.local/lib/python2.7/site-packages/pylxd/client.py", line 290, in __init__
    raise exceptions.ClientConnectionFailed()
pylxd.exceptions.ClientConnectionFailed

Oh, that's a bit odd.  Okay, let's dig a bit deeper.  If you do:
import logging
logging.basicConfig(level=logging.DEBUG)

before you do the client connect, we might get some more useful debugging information.

The only additional info is that urllib3 starts the https connection:
>>> import logging
>>> logging.basicConfig(level=logging.DEBUG)
>>> from pylxd import Client
>>> client = Client(endpoint='https://<IP_ADDRESS>:8443', cert=('/home/adosztal/.config/lxc/client.crt', '/home/adosztal/.config/lxc/client.key'))
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): <IP_ADDRESS>:8443
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/adosztal/.local/lib/python2.7/site-packages/pylxd/client.py", line 290, in __init__
    raise exceptions.ClientConnectionFailed()
pylxd.exceptions.ClientConnectionFailed

I can see this message in syslog:
Jul  8 09:44:00 lxd1 lxd[802]: 2018/07/08 09:44:00 http: TLS handshake error from <IP_ADDRESS>:49040: remote error: tls: unknown certificate authority

Okay, how good are you with Python?  Because the only thing I can suggest now, is to go into "/home/adosztal/.local/lib/python2.7/site-packages/pylxd/client.py" at and add a print() into the code before the exception is raised (at line 190) and print out the response.  This would let us see what is coming back from the server "raw" and then work out what to look at next.

Ah, re: the remote error issue.  Sorry, if you add , verify=False to the connection command, it will not verify the certificate and the connection should be made.  You'll get an Insecure warning though.

That indeed helped, it works now. Thanks a lot!
Maybe I'll submit a PR to include this tip in doc/source/authentication.rst; what do you think?

@adosztal excellent!  yes, we definitely need to beef up the documentation around how this works, so please do feel free to submit a PR.  For example you can pass the ca bundle (as a string) to the verify parameter, but that's only documented on the docstring.  It would be good to have some examples/gotchas around this area.  For a very long time, pylxd was only used with the unix socket, so some of this isn't as well tested in the real world.

Hi, we are randomly getting Terminated websocket exception when trying to do several container.exec() one by one, while doing several other task on another container in the background using celery.
pylxd connects via TCP to remote machine.
Can you help with debug ?

@vanushwashere can you please provide details of versions of pylxd, lxd and OS?  Thanks.

Also I'm getting Got error getting next reader websocket: close 1000 , &{%!s(*os.file=&{21 slave <nil>})} in debug :/

OS: Ubuntu Server 16.04
pylxd version: 2.2.7
lxd versino: 2.0.11
Also I found this issue over the internet:
Issue on lxd

@vanushwashere could you re-try with master branch please?  There's been a few commits in that area and it might have been fixed.

@ajkavanagh I did that, no problems so far :+1:
When do you plan roll out next release ?

@vanushwashere I'm kind of waiting on a few PRs to land; just trying to get their tests squared away.  However, due to the time its unfortunately taking, I'm thinking of releasing next week as this issue is obviously causing issues.

That'll be great 😎

@ajkavanagh I am using master branch, but on check operation (/1.0/operations/:oprerationId) after some exec getting Max retries exceeded with url: /1.0/operations/:operationId. I am creating many containers at once (10 for example), and do many execs in them. How can this be fixed?

@ajkavanagh Also I am getting not found exception sometimes on execute command.

I am having the exact same issue as was originally stated in this thread:
>>> client = Client(endpoint="https://[ip]:8443", cert=("lxd.crt", "lxd.key"), verify=False)
is the only thing that works, but it gives InsecureRequestWarning for almost every action.

Hi @Commander-Firestrike , we disabled warnings like this
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)


Extend auditing

What
Extend the auditing code to check applications to find any instances of gem-c- classes in stylesheets or code, and raise a warning in the auditing page if found.
Why
This will help us spot instances of component style overrides (which can break component isolation) or hard coded component markup (which can leave pages broken if the component is changed).
Visual Changes
Any instances found are added to the existing list of warnings.

All instances are also listed after the warnings.

The code checks all the places that components are currently searched in (stylesheets, templates, javascripts, ruby code) but doesn't raise a warning if the instance is a javascript file, as attaching events to components on an application level seems like it might not cause problems? Happy to discuss this approach though.

As I haven't got the chance to use the auditing tool in practice, I tagged our fellow front-end developers to understand if they share the view and find the functionality useful.


fix(deps): bump

Applied mkpr on undefined
sed s/"aggregation-repository-provider": "^.*"/"aggregation-repository-provider": "^2.8.23"/

Coverage remained the same at 87.526% when pulling 9d4ae70cba20b85b2248c33825eeb2176aa1d6a4 on mkpr/1 into 03a6666b2239675909bf18d2dc06793e777bdab2 on master.

:tada: This PR is included in version 10.0.24 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Redirect ffmpeg output to logger.

This is something with #597
Without any ffmpeg output, I spend hours on investigating why my custom options are not working. I cannot find the logs in UI output or command line output. This change will redirect ALL OF ffmpeg output to pigallery2's logger.
Warning: ffmpeg will output tons of information and bump your output.
https://www.npmjs.com/package/fluent-ffmpeg#stderr-ffmpeg-output

Thank you!


chore(deps): Bump gremlin from 3.4.7 to 3.5.1

Updated gremlin to newer version 3.5.1

He @zposten !
One more minor suggestion on updating gremlin API version.
I've ran unit tests you wrote against updated gremlin 3.5.1 and it worked.
Appreciate your work.
Thanks!

Hey @EA-pbu, thank you again for the PR!  Looks good to me!
I added a comment to the other PR you opened (#29), once we work through that I will release a new version of this package!
Thanks for your help.

awesome!
appreciate that
I left a comment in #29


Can't assign [CMD + "] to 'Toggle Terminal' Action

Type: Bug
After the last update, suddenly the keybinding of 'toggle terminal' changed to [CMD + NumPad_Subtract].
And whenever I assign it back to [CMD + "] it keeps coming the same to [CMD + NumPad_Subtract].
I tried to be sure if there is any problem with double quote but no, I can assign quote character " by itself but can't assign with CMD as a combination.
VS Code version: Code 1.75.0 (e2816fe719a4026ffa1ee0189dc89bdfdbafb164, 2023-02-01T15:24:42.903Z)
OS version: Darwin x64 22.2.0
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
3, 2, 2

Memory (System)
16.00GB (0.27GB free)

Process Argv
--crash-reporter-id f8262acf-dbbe-43c7-adf4-9c626b6fc565

Screen Reader
no

VM
0%

Extensions (33)

Extension
Author (truncated)
Version

vscode-eslint
dba
2.2.6

es7-react-js-snippets
dsz
4.4.3

gitlens
eam
13.2.0

prettier-vscode
esb
9.10.4

auto-close-tag
for
0.5.14

auto-rename-tag
for
0.1.10

vscode-chatgpt
gen
3.4.3

remotehub
Git
0.50.0

go
gol
0.37.1

todo-tree
Gru
0.0.223

react-native-snippet
jun
0.5.6

vscode-docker
ms-
1.23.3

csharp
ms-
1.25.2

isort
ms-
2022.8.0

python
ms-
2023.2.0

vscode-pylance
ms-
2023.2.10

jupyter
ms-
2023.1.2000312134

jupyter-keymap
ms-
1.0.0

jupyter-renderers
ms-
1.0.14

vscode-jupyter-cell-tags
ms-
0.1.6

vscode-jupyter-slideshow
ms-
0.1.5

remote-containers
ms-
0.275.0

azure-repos
ms-
0.26.0

remote-repositories
ms-
0.28.0

vscode-react-native
msj
1.10.0

vscode-versionlens
pfl
1.1.1

material-icon-theme
PKi
4.23.1

LiveServer
rit
5.7.9

intellicode-api-usage-examples
Vis
0.2.7

vscodeintellicode
Vis
1.2.30

vscode-conventional-commits
viv
1.25.0

vscode-todo-highlight
way
1.0.5

vscode-import-cost
wix
3.3.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30657576
f6dab269:30613381
pythonsymbol12cf:30657549

You should run Developer: Toggle Keyboard Shortcuts Troubleshooting to see what's going on

You should run Developer: Toggle Keyboard Shortcuts Troubleshooting to see what's going on

When I press CMD + " outputs are below:
2023-02-05 18:17:14.079 [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: MetaLeft, keyCode: 91, key: Meta
2023-02-05 18:17:14.080 [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: MetaLeft, keyCode: 57 ('Meta')
2023-02-05 18:17:14.080 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2023-02-05 18:17:14.152 [info] [KeybindingService]: / Soft dispatching keyboard event
2023-02-05 18:17:14.153 [info] [KeybindingService]: | Resolving meta+[IntlBackslash]
2023-02-05 18:17:14.153 [info] [KeybindingService]: \ No keybinding entries.
2023-02-05 18:17:14.153 [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: IntlBackslash, keyCode: 222, key: "
2023-02-05 18:17:14.154 [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: IntlBackslash, keyCode: 90 (''')
2023-02-05 18:17:14.154 [info] [KeybindingService]: | Resolving meta+[IntlBackslash]
2023-02-05 18:17:14.154 [info] [KeybindingService]: \ No keybinding entries.
2023-02-05 18:17:14.416 [info] [KeybindingService]: + Storing single modifier for possible chord meta.
2023-02-05 18:17:14.722 [info] [KeybindingService]: + Clearing single modifier due to 300ms elapsed.
2023-02-05 18:17:21.331 [info] [KeybindingService]: + Storing single modifier for possible chord meta.
2023-02-05 18:17:21.361 [info] [KeybindingService]: + Clearing single modifier due to other key up.
2023-02-05 18:17:23.656 [info] [KeybindingService]: + Storing single modifier for possible chord meta.
2023-02-05 18:17:23.962 [info] [KeybindingService]: + Clearing single modifier due to 300ms elapsed.

Animation of the issue here:

And for your information, I have Turkish Q Keyboard.

Duplicate of #173325


[#51] Table dropdownMenu optional

Resolves #51
Note, this is a breaking change.

I believe that what we actually want is to have a purely visual table component, without all the controls for columns and sorting. This was discussed with @spicydonuts a little before open sourcing but we never did actual work on it.
Adding more props to Table is overlooking the real problem in my opinion. I don't think this should be hard to do, but I'm glad to help and approve if this is a pressing issue

Specifically this is being used for a table that does need sorting but not the ability to toggle columns (i.e. we want to let the user sort by column, but not access the dropdown menu). I do agree we should readdress our table and a purely visual one would likely solve other use cases. This PR resolves a blocking issue we currently have, so is a bit pressing to get out. Thanks for the feedback!


Added note for bLIP 10 fields removed by #510

The spec was changed when it was transferred over from the lightning repo and several unused or underused fields were removed (see #510). This PR adds a note listing the fields that were removed and links to the #510 for more info.
Some apps are still using these fields (particularly value_msat, see: https://reflex.livewire.io/apps) and it would be good to indicate in the spec that they should no longer be used

Since value_msat is still widely used, maybe it should be re-added to the spec? In theory, it should always match the number of received sats in the invoice.

value_msat would be very useful to include in the spec (it's in the example!), as it can contain millisats (i don't think invoices can or at least do?) - millisats are useful to back into the total amount if you have a small split
and it's a great indication of "what the client meant to send", to be sanity checked against what was actually received
also, as you say, already being sent by many

this was my only recommended note for whoever is in charge of the spec over in https://reflex.livewire.io/apps

@johnspurlock Invoices do contains both sat and msat totals:
e.g. lncli output
"amt_paid": "34000",
"amt_paid_sat": "34",
"amt_paid_msat": "34000",
...
"htlcs": [
    {
        ...
        "amt_msat": "34000",
    }
]

value_msat might be useful since it contains the original split value before any lightning routing fees are taken out. I think this can still be derived from the HTLCs in the  invoice, but it might be more convenient to get it from the TLV. On the otherhand, getting it from the invoice is better when reporting actual msat totals, since TLVs can be easily spoofed.

Thanks to @johnspurlock we added both value_msat and value_msat_total to the Alby Dashboard. Are we missing anything else John?


2.x Eureka 1.x backwards compatible API with delta fetch support.

NetflixOSS » eureka » eureka-pull-requests #165 SUCCESS
This pull request looks good

NetflixOSS » eureka » eureka-pull-requests #169 SUCCESS
This pull request looks good

NetflixOSS » eureka » eureka-pull-requests #170 SUCCESS
This pull request looks good

NetflixOSS » eureka » eureka-pull-requests #174 SUCCESS
This pull request looks good

NetflixOSS » eureka » eureka-pull-requests #177 SUCCESS
This pull request looks good


Becareful price

I find it using all models and the price is super expansive if you use run 100 it will take around 8 USD+ per min

You might want to look at other LLMs, as described here: #1


[bug] Read from parquet does not work

Parquet file is existing and can be read with https://parquet-viewer-online.com
Execution of DSL script results in printing a frame with all (10) values nan
// read_from_parquet.daph
group_data = readFrame("/path/to/data.parquet");

print(group_data);

OUTPUT:
Frame(5x2, [Id:double, Vds:double])
nan nan
nan nan
nan nan
nan nan
nan nan

// /path/to/data.parquet.meta
{
  "numRows": 5,
  "numCols": 2,
  "schema": [
    {
      "label": "Id",
      "valueType": "f64"
    },
    {
      "label": "Vds",
      "valueType": "f64"
    }
  ]
}

This is how I created the parquet file:
import pyarrow.parquet as pq
from pathlib import Path
import pyarrow.csv as csv

def main(path: str):

    p = Path(path)
    ro = csv.ReadOptions(column_names = ["Id", "Vds"])
    table = csv.read_csv(p, read_options=ro)

    print("Arrow table from csv ----------------------------------------------------------------------------")
    print(f"Num cols in table: {table.num_columns}")
    print(f"Num rows in table: {table.num_rows}")
    print(table)
    print("Writing arrow table -----------------------------------------------------------------------------")
    destpth = p.with_suffix(".parquet")
    print(f"writing to {destpth.resolve()}")
    pq.write_table(table, destpth, use_dictionary=False)
    print("Reading back again from parquet file-------------------------------------------------------------")
    rtable=pq.read_table(p.with_suffix(".parquet"))
    print(rtable)
    print("pandas repr.:")
    print(rtable.to_pandas())

from a csv file which looks like this:
0.1184805,4.2727
0.026556,4.2356
-0.0653686,4.248
-0.0347271,4.248
-0.0040855,4.6257

Sample parquet files can be acquired here (data is much more complex here): https://github.com/kaysush/sample-parquet-files/tree/main

Hi!
I just looked into this. Apparently we don't support reading frames from Parquet files yet (see src/runtime/local/kernels/Read.h)  :see_no_evil:
When changing readFrame() to readMatrix() I noticed, since I used the suggested sample inputs, that we don't build Arrow with support for the Snappy codec.
Regards, Mark

I changed the Python script with additional compression algo specification like
compression = "GZIP" | "SNAPPY" | "BROTLI"
pq.write_table(table, destpth, use_dictionary=False, compression=compression)

with readMatrix and all 3 compression algos I get the same error:
[error]: Execution error: Could not read Parquet table

The Snappy compressed sample parquet files from the link above can be read without error by DAPHNE if I compile Arrow with Snappy support. I'll incorporate all Arrow supported compression formats in the next Docker image updates.

Hi @corepointer
With the new Docker image I am able to read parquet files. Tested for snappy, brotli and gzip.
Thank you!
I would close this issue then or are there remaining open points?
KR

As I mentioned in the commit message of c1100d8, this is just a partial fix as the parquet reader seems to be quite limited at the moment.
In my tests with the sample files from the link above I noticed that I get a nice matrix if I use readMatrix() (because readFrame() is not supported here. The nice matrix would contain mostly zeros as it does not handle the required data types correctly (e.g., "345.0" would become 0 as this floating point value is stored as string in the parquet file). Furthermore the inputs are converted to csv in memory and then read from there. That csv reader also had some issues parsing (didn't tokenize well in between the commas).
So if it is working for you now (do all values you from your input get read correctly?), you could close the issue. We can also deal with the shortcomings of the reader with a more detailed error description in another bug report.

I just tried a larger file now, and unfortunately it does not properly, at the end of the matrix there are a lot of nan's then instead of the values

It is very strange: sometimes it works properly, sometimes not


Can not compile in Windows

Hi!
I don't think it's a bug in sokol, most likely it's a bug in the Zig compiler or a user error.
But I was wondering if you could help me.
Have you been able to compile any sokol app in Windows recenlty?
I'm pretty sure that I've been able to compile my sokol app at some point, but it stopped working. There seems to be an error linking WinMain. I have found that it might be a more general problem. But I'm left wondering why I'm experiencing this issue now, and if other people have this issue too.
Thanks for making these awesome libraries!

I just tried zig build with zig v0.11.0 on the master branch of this repo and tested all the examples afterwards. Everything seems to work well.
Can you provide the source code and the version of zig you're using?

Thanks for trying it out!
I'm using zig v0.11.0 as well. Interesting!
Here is the project:
zig_sokol_test.zip

I tried compiling the library on it's own, and it seem to work, and I can run the samples!
The problem shows up when I try to use sokol as an external library. I have my own build.zig and I import sokol externally.
I have also tried with the new package manger approach and I get the same link error.

I can reproduce the problem in your project, but not in sokol-zig or my other projects, not sure what could be causing this.
Can you check if pacman.zig works for you? That should be pretty close to your use case:
https://github.com/floooh/pacman.zig
(building it works, but I just noticed that the colors are off, need to investigate this separately)

When I try to build your project, and look at the symbols of sokol.lib in the zig-cache, I can't find any references to main or WinMain (as it should be), e.g. what I did in a "Visual Studio command prompt" => so that Visual Studio's dumpbin tool is in the path, also 'fd' is a file-find tool installed via scoop:
> fd sokol.lib
zig_sokol_test\zig-cache\o\b85f443ef0ac2d82e7cac908be9a8f28\sokol.lib
> dumpbin /SYMBOLS zig_sokol_test\zig-cache\o\b85f443ef0ac2d82e7cac908be9a8f28\sokol.lib >log.txt

...the resulting log has all internal and external symbols in sokol.lib, and if sokol.lib wants to link with main() or WinMain() one of those symbols should be listed, which they are not though.
When you run zig env, what's printed? In may case:
C:\Users\floh\Downloads\zig_sokol_test>zig env
{
 "zig_exe": "C:\\Users\\floh\\scoop\\apps\\zig\\current\\zig.exe",
 "lib_dir": "C:\\Users\\floh\\scoop\\apps\\zig\\current\\lib",
 "std_dir": "C:\\Users\\floh\\scoop\\apps\\zig\\current\\lib\\std",
 "global_cache_dir": "C:\\Users\\floh\\AppData\\Local\\zig",
 "version": "0.11.0",
 "target": "x86_64-windows.win10_fe...win10_fe-gnu"
}

It looks to me like you're not specifying the root zig module anymore. I assume it got lost in translation when porting from the old build API to the new one.
const exe = b.addExecutable(.{
    .name = "zig_sokol_test",
    .target = target,
    .optimize = optimize,
    // This is missing {
    .root_source_file = .{
        .path = "src/main.zig",
    },
    // }
});

Lol yeah, that's it I guess. I just tested to remove all code, and just put an @import("std").debug.print("Hello") into the zig main function, and that also had the linker error.

Yeah confirmed that's it, putting the .root_source_file into build.zig makes it work. A bit strange that Zig doesn't catch that as error. I'll close the ticket, if there's anything else feel free to reopen with new details :)


Stumped with installation issues

I've been trying to diagnose my installation issue for a day without success.
I've got Jekyll installed globally and can build a Jekyll site the "old fashion way" by doing this in my terminal:
jekyll new directoryformysite
cd directoryformysite
jekyll serve

But, I've used the generator-jekyllrb workflow quite a while now and am having trouble with it. I'm setting up a new machine node (with nvm) and ruby (with rvm). I've installed yeoman and the basic 'webapp' generate works fine for me. The "generator-jekyllrb" keeps giving me errors unfortunately.
The first seems be only when I wasn't selecting one of the 2 available templates. (The default selection was throwing an error for me as described here: https://github.com/robwierzbowski/generator-jekyllrb/issues/142)
If I do pick a template (i.e. choosing Default Jekyll) the yo jekyllrb command completes successfully.
Next I need to to an npm install & bower install. Finally, I try to serve the basic site I've built and I get an error I'm not able to get past.
     Warning: Running "jekyll:server" (jekyll) task
    >> Error: Command failed: /bin/sh -c jekyll -v
    >> /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler/dsl.rb:35:in `rescue in eval_gemfile': Gemfile syntax error on line 3: syntax error, unexpected tIDENTIFIER, expecting end-of-input (Bundler::GemfileError)
    >> gem 'jekyll', '~> 2.3.0'gem 'redcarpet' gem 'compass', '~> 1.0.1'
    >>                            ^
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler/dsl.rb:31:in `eval_gemfile'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler/dsl.rb:10:in `evaluate'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler/definition.rb:25:in `build'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler.rb:155:in `definition'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler.rb:118:in `setup'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:37:in `require_from_bundler'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/gems/jekyll-2.5.3/bin/jekyll:16:in `<top (required)>'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/bin/jekyll:23:in `load'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/bin/jekyll:23:in `<main>'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
    >> 	from /Users/john/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'
    Warning: Please install Jekyll before running this task. Use --force to continue.

    Aborted due to warnings.

To see this in action, going through this process after a clean build of a "generator-jekyllrb" workflow.

The error says I do not have Jekyll installed which I do.
If I run "jekyll -v" in the directory before running "grunt server" I will see:
$ jekyll -v
jekyll 2.5.3

After running it though, I get this same error as I get when running grunt serve:
$ jekyll -v
/Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler/dsl.rb:35:in `rescue in eval_gemfile': Gemfile syntax error on line 3: syntax error, unexpected tIDENTIFIER, expecting end-of-input (Bundler::GemfileError)
gem 'jekyll', '~> 2.3.0'gem 'redcarpet' gem 'compass', '~> 1.0.1'
                           ^
	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler/dsl.rb:31:in `eval_gemfile'
	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler/dsl.rb:10:in `evaluate'
	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler/definition.rb:25:in `build'
	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler.rb:155:in `definition'
	from /Users/john/.rvm/gems/ruby-2.2.0/gems/bundler-1.8.4/lib/bundler.rb:118:in `setup'
	from /Users/john/.rvm/gems/ruby-2.2.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:37:in `require_from_bundler'
	from /Users/john/.rvm/gems/ruby-2.2.0/gems/jekyll-2.5.3/bin/jekyll:16:in `<top (required)>'
	from /Users/john/.rvm/gems/ruby-2.2.0/bin/jekyll:23:in `load'
	from /Users/john/.rvm/gems/ruby-2.2.0/bin/jekyll:23:in `<main>'
	from /Users/john/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
	from /Users/john/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'

It's like my directory is corrupted for use with Jekyll now. I see the simple "jekyll" command is now looking at the Gemfile in my directory. I'm just lost now. Any help?

@johnfmorton I have the same exact problem.

@johnfmorton I have the exact same issue.

@asilvadesigns I will try that and report back. Thanks for the reply and suggestion.

Thanks for the tip @asilvadesigns. No luck on my end unfortunately. I'm stuck still.

I wanted to post a correction to one of the assertions I made in the initial post in this chain. I had said that after running grunt serve the command jekyll -v was generating the error described above. That's not actually the case.
In a fresh directory where I intend to make a jekyll site, I can run jekyll -v before starting the yo jekyllrb build and it will return the expected result jekyll 2.5.3.
After running yo jekyllrb and going through all the initialization steps which will generate all the files, I can try jekyll -v and the command already throws the error described earlier. The error doesn't occur because grunt serve has been run in the directory.
I'm not sure if this sheds any new light on this issue I'm having but I'm still investigating how to solve this problem. Any help is appreciated. Thanks.

I've got things working by going into my Gemfile and breaking it up like this following.
source "http://rubygems.org"

gem 'jekyll', '~> 2.3.0'
gem 'redcarpet'
gem 'compass', '~> 1.0.1'

This is instead of the way it came out originally after the yo jekyllrb process.
source "http://rubygems.org"

gem 'jekyll', '~> 2.3.0'gem 'redcarpet' gem 'compass', '~> 1.0.1'

It seems the line breaks between the different gems made the difference.
After updating the Gemfile, I ran the following:
bundle install

This installed a bunch of things outputting the following:
~/sites/mytestsite
$ bundle install
Fetching gem metadata from http://rubygems.org/.........
Fetching version metadata from http://rubygems.org/..
Resolving dependencies...
Using blankslate <IP_ADDRESS>
Using hitimes 1.2.2
Using timers 4.0.1
Using celluloid 0.16.0
Using chunky_png 1.3.4
Using fast-stemmer 1.0.2
Using classifier-reborn 2.0.3
Using coffee-script-source 1.9.1
Using execjs 2.4.0
Using coffee-script 2.3.0
Using colorator 0.1
Using multi_json 1.11.0
Using sass 3.4.13
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using rb-fsevent 0.9.4
Using ffi 1.9.8
Using rb-inotify 0.9.5
Using compass 1.0.3
Using jekyll-coffeescript 1.0.1
Using jekyll-gist 1.1.0
Using jekyll-paginate 1.1.0
Using jekyll-sass-converter 1.3.0
Using listen 2.9.0
Using jekyll-watch 1.2.1
Using kramdown 1.6.0
Using liquid 2.6.2
Using mercenary 0.3.5
Using posix-spawn 0.3.10
Using yajl-ruby 1.2.1
Using pygments.rb 0.6.2
Using redcarpet 3.2.2
Using safe_yaml 1.0.4
Using parslet 1.5.0
Using toml 0.1.2
Using jekyll 2.3.0
Using bundler 1.8.4
Bundle complete! 3 Gemfile dependencies, 37 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

Now when I use grunt serve, the site launches successfully.
I still find error in my console because some files are not in the expected places. Specifically, here are the errors I'm seeing:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:3001/css/main.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:3001/css/syntax.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:3001/css/main.css Failed to load resource: the server responded with a status of 404 (Not Found)

These are all errors I can address with some HTML editing so I'm not too worried about them since they are not deal breakers but it would be preferable not to have to have them at all. I'm using the "Default Jekyll template" in this example.
Thanks for reading. I hope this is helpful.

Hi,  Can we submit a PR to clean up the Gem?
Also, and it may be related, I experienced the same issue with two local jekyll versions. Fixed it by running 'gem list jekyll' then 'gem uninstall' on the offending jekyll. Now it loads fine.
I supposed I could have tried updating the jekyll version in the gemfile but decided it best to stick with prescribed jekyll version 2.3.0
grunt serve -f
Running "serve" task
Running "clean:server" (clean) task

0 paths cleaned.

Running "concurrent:server" (concurrent) task
Running "jekyll:server" (jekyll) task
>> Error: Command failed: /bin/sh -c jekyll -v
>> WARN: Unresolved specs during Gem::Specification.reset:
>>       listen (~> 2.7)
>> WARN: Clearing out unresolved specs.
>> Please report a bug if this causes problems.
>> /Users/marc/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/jekyll-2.5.3/bin/jekyll:21:in `block in <top (required)>': cannot load such file -- jekyll/version (LoadError)
>> 	from /Users/marc/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/mercenary-0.3.5/lib/mercenary.rb:18:in `program'
>> 	from /Users/marc/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
>> 	from /Users/marc/.rbenv/versions/1.9.3-p448/bin/jekyll:23:in `load'
>> 	from /Users/marc/.rbenv/versions/1.9.3-p448/bin/jekyll:23:in `<main>'
Warning: Please install Jekyll before running this task. Used --force, continuing.
Warning: Task "jekyll:server" failed. Used --force, continuing.

Done, but with warnings.

I ran into the same issue as johnfmorton, and I broke up my Gemfile similarly. I received the same output from bundle install but when I tried grunt serve again, I got an issue similar to mashcode.
$ grunt serve
Running "serve" task

Running "clean:server" (clean) task
>> 1 path cleaned.

Running "concurrent:server" (concurrent) task
>> Warning: There are more tasks than your concurrency limit. After this limit
>> is reached no further tasks will be run until the current tasks are
>> completed. You can adjust the limit in the concurrent task options

    Running "sass:server" (sass) task

    Done, without errors.

    Execution Time (2015-08-01 00:38:05 UTC)
    loading tasks  8.1s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%
    Total 8.1s

    Running "copy:stageCss" (copy) task
    Copied 1 files

    Done, without errors.

    Execution Time (2015-08-01 00:38:05 UTC)
    loading tasks  8.1s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%
    Total 8.1s
        Warning: Running "jekyll:server" (jekyll) task
    >> Error: Command failed: /bin/sh -c jekyll -v
    >> WARN: Unresolved specs during Gem::Specification.reset:
    >>       pygments.rb (~> 0.6.0)
    >>       redcarpet (~> 3.1)
    >>       jekyll-watch (~> 1.1)
    >> WARN: Clearing out unresolved specs.
    >> Please report a bug if this causes problems.
    >> /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/bin/jekyll:21:in `block in <top (required)>': cannot load such file -- jekyll/version (LoadError)
    >> 	from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary.rb:18:in `program'
    >> 	from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
    >> 	from /usr/bin/jekyll:23:in `load'
    >> 	from /usr/bin/jekyll:23:in `<main>'
    Warning: Please install Jekyll before running this task. Use --force to continue.

    Aborted due to warnings.

    Execution Time (2015-08-01 00:38:14 UTC)
    loading tasks  1.7s  ▇▇▇▇▇▇▇▇▇▇▇ 22%
    jekyll:server  6.1s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 78%
    Total 7.8s Use --force to continue.

        Aborted due to warnings.

Execution Time (2015-08-01 00:37:56 UTC)
loading tasks       8.2s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 32%
concurrent:server  17.4s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 68%
Total 25.7s


number of arguments in VI_1PL.forward

in "variational-item-response-theory-public/src/torch_core/models.py",
line 118 "def forward(self, index, response, mask)" has 3 position arguments but line 191 "self.forward(response, mask)" called with 2 position arguments.

Seems like the problem is about all the repository. Maybe is some version compatitibilty problem, but I never managed to fix the issue. The NN worked, but didn't get the expected results.
Could you translate it to tensorflow to see a fresh perspective?


Unknown file extension ".css" / ".scss" with Plugins

Link to reproduction
No response
Environment Info
Binaries:
  Node: 18.20.4
  npm: N/A
  Yarn: N/A
  pnpm: 8.3.1
Relevant Packages:
  payload: 3.0.0-beta.94
  next: 15.0.0-canary.132
  @payloadcms/db-mongodb: 3.0.0-beta.94
  @payloadcms/email-nodemailer: 3.0.0-beta.94
  @payloadcms/graphql: 3.0.0-beta.94
  @payloadcms/next/utilities: 3.0.0-beta.94
Relevant Packages:
  payload: 3.0.0-beta.94
  next: 15.0.0-canary.132
  @payloadcms/db-mongodb: 3.0.0-beta.94
  @payloadcms/email-nodemailer: 3.0.0-beta.94
  @payloadcms/graphql: 3.0.0-beta.94
  @payloadcms/next/utilities: 3.0.0-beta.94
  @payloadcms/db-mongodb: 3.0.0-beta.94
  @payloadcms/email-nodemailer: 3.0.0-beta.94
  @payloadcms/graphql: 3.0.0-beta.94
  @payloadcms/next/utilities: 3.0.0-beta.94
  @payloadcms/graphql: 3.0.0-beta.94
  @payloadcms/next/utilities: 3.0.0-beta.94
  @payloadcms/next/utilities: 3.0.0-beta.94
  @payloadcms/plugin-cloud: 3.0.0-beta.94
  @payloadcms/richtext-lexical: 3.0.0-beta.94
  @payloadcms/translations: 3.0.0-beta.94
  @payloadcms/ui/shared: 3.0.0-beta.94
  react: 19.0.0-rc-06d0b89e-20240801
  react-dom: 19.0.0-rc-06d0b89e-20240801
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 32440
  Available CPU cores: 20

Describe the Bug
When adding the "@payload-enchants/better-localized-fields" or "@payload-enchants/better-use-as-title" plugins, I get the following error:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css" for C:\Users\morav\Documents\Projects\localbites\node_modules\react-image-crop\dist\ReactCrop.css
    at new NodeError (node:internal/errors:405:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:136:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:182:36)
    at defaultLoad (node:internal/modules/esm/load:101:20)
    at nextLoad (node:internal/modules/esm/hooks:864:28)
    at load (file:///C:/Users/morav/Documents/Projects/localbites/node_modules/tsx/dist/esm/index.mjs?1724832251621:2:1768)
    at nextLoad (node:internal/modules/esm/hooks:864:28)
    at Hooks.load (node:internal/modules/esm/hooks:447:26)
    at handleMessage (node:internal/modules/esm/worker:196:24)
    at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}

While I would usually post an issue like this on the plugin's repo, it seems to be a Payload issue that comes from Payload's react-image-crop dependency as seen in my yarn.lock file:
"<EMAIL_ADDRESS>  version "3.0.0-beta.94"
  resolved<EMAIL_ADDRESS>  integrity sha512-+Yxw3iEm5rXzZn/P52lC067JaE5XcIDVUN0hxA3NRNqh9i6d4DCO855dgQ6BXgd/dqrBQxWLB2wF3Su8TuA3Cg==
  dependencies:
    react-image-crop "10.1.8"

Reproduction Steps

Setup blank Payload project.
Install @payload-enchants/better-use-as-title.
Add the plugin to payload.config.ts:

import { betterUseAsTitle } from "@payload-enchants/better-use-as-title";

export default buildConfig({
  ...config,
  plugins: [betterUseAsTitle({ collections: [] })]
})

Run payload generate:importmap.

Adapters and Plugins
@payload-enchants/better-use-as-title

Hey @Dan6erbond
These plugins aren't up to the current version and it should be fixed in their repository. not payloadcms/payload

For me it had nothing to do with any plugins.
I had the same error (Unknown file extension ".css" in react-image-crop). I duplicated my code and removed step-by-step anything that could be an issue until I had an almost clean PayloadCMS instance.
The problem was, that I had an util function for creating collection groups and a react hook (using usePayloadAPI) in the same file, like this:
import {CollectionConfig} from 'payload'
import {usePayloadAPI} from '@payloadcms/ui'

export const withGroup = (group: string | Record<string, string>) => (collection: CollectionConfig): CollectionConfig => ({
    ...collection,
    admin: {
        ...collection.admin,
        group
    }
})

export const useCurrentUser = () => {

    const {data: {user}, isLoading, isError} = usePayloadAPI('/api/users/me')[0]

    return {
        user,
        isLoading,
        isError
    }

}

After separating those functions in different files everything worked fine (i.e.: I could generate the types again).

I have the same error as @w41x , I wonder if there is a faster way to find the problem file without step by step removal 😅


Update version of dockerfile-maven plugin

Motivation
Errors in integration tests seems to be caused by older version of docker client lib.
2019-10-18\T\02:38:26.361 [ERROR] no status provided on response: unknown
2019-10-18\T\02:38:26.365 [WARNING] An attempt failed, will retry 1 more times
org.apache.maven.plugin.MojoExecutionException: Could not build image
    at com.spotify.plugin.dockerfile.BuildMojo.buildImage (BuildMojo.java:208)
    at com.spotify.plugin.dockerfile.BuildMojo.execute (BuildMojo.java:110)
    at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:259)

run java8 tests
run integration tests

run integration tests

rerun integration tests

rerun integration tests


HA and port 19001

Does port 19001 need to be opened on all machines/VMs in a cluster running HA?   "microk8s status" states that 19001 is being used  (the port is not open on the machines) but nowhere in the documentation does it speak to port 19001 specifically.   Maybe I'm not looking the right place.  Thanks

Thank you for pointing this out @just1victory. The 19001 is used by dqlite, available on v1.19+ releases. Just updated the docs in https://discuss.kubernetes.io/t/services-and-ports/11263
Feel free to reopen the issue if you want to see this info in other places as well.


[CORE] User profile

Create a new filter /profile/ to see the information of the author of a page.

I think it can be done as plugin to have ability to switch on / off.


Print a warning for un-applied commands being dropped from a CommandQueue

Objective

Fixes #11125

Solution
Add a warning for un-applied commands to the drop function.

Here is a gist with code to test the feature:
https://gist.github.com/nicopap/cbff7a6dd36df728dd73ec40914bf931
It should show the warn, and when line 38 is uncommented, it shouldn't.


destroy after push(null).

Arguably destroy might not be necessary?


:pencil: add how to python in face_mesh model

So, I added this, to people who want to use face_mesh model in python. I don't know why it wasn't here, maybe you don't want this kind of tutorial.
BTW, If you think it is good to have, I just added. a Python code to run 'face_landmark.tflite' in Python.

@googlebot I signed it!

Thanks for reporting this. We have MediaPipe FaceMesh Python solution now. Please take a look. Thanks.


Allow RKE Template to be detached from cluster

What kind of request is this (question/bug/enhancement/feature request):
enhancement
Steps to reproduce (least amount of steps as possible):

Once a cluster has been attached to an RKE template there is no way to detach it.

Result:
N/A
Other details that may be helpful:
N/A
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): v2.3.5
Installation option (single install/HA): HA

Will it be available in the next release?

Let I describe one of the use cases:
when I’m adding or deleting nodes from the cluster attached to an RKE template, the nodes are not added or deleted in/from the attached RKE template which in fact was generated before from another state of the cluster and also I can’t find a way to regenerate a new template from the current running cluster state as it already attached to another RKE template before.


[feature] fix typos and add node authorization and deauthorization actions [OSF-5371]

Purpose
Fix typos and add node authorization and deauthorization actions to API docs. Related to the v2/nodes/<node_id>/logs endpoint.
Changes

biliography --> bibliography
permissions_update --> permissions_updated
added node_authorized and node_deauthorized to ticket

Note: file_added, file_updated, etc. were not changed to addon_file_added because the logs say the name of the addon that was added. So, if the user filters off of addon_file_added no results would appear because the actual logs say something like github_file_added.
Side effects
None
Ticket
https://openscience.atlassian.net/browse/OSF-5371

Looks good to me @leb2dg! 🐋


Use generic method from ServiceDescriptor

Currently, Injectio generated ServiceDescriptor.Describe for each service:
ServiceCollectionDescriptorExtensions.TryAdd(
    serviceCollection,
    ServiceDescriptor.Describe(
        typeof(TService),
        typeof(TImplementation),
        ServiceLifetime.Scoped
    )
);

Switching to ServiceDescriptor.Scoped<TService, TImplementation> where TImplementation : TService can detect type errors at compile time.

This won't work for open generics registration


[Event Hubs] Review the use of namespace and modules

Relevant text from the Typescript guidelines

TypeScript Namespaces should not be used. Namespaces either use the namespace keyword explicitly, or the module keyword with a module name, e.g. module Microsoft.ApplicationInsights { ... }. Use top-level imports/exports with ECMAScript modules instead. Namespaces are a non-standard feature that makes your TypeScript code less compatible with standard ECMAScript and creates significant friction with the rest of the ecosystem.

We use namespace and modules in the below libraries

Event Hubs
EPH
Service Bus
amqp-common

All occurrences need to be reviewed and changes (if any) suggested.
Note: This issue is to only do the investigations. New issues for each library will be logged post investigations.
cc @bterlson

No namespaces or modules are used in the user facing surface, so closing this


Added API for getting all broadcasts

Added new route for above API as broadcast/all
Added test for this API
Introduce this route at client side when al filters are empty
Issue that this pull request solves
Closes: #753
Proposed changes
Added API for getting all broadcasts
Brief description of what is fixed or changed
Before even when no filters were applied only 5 broadcasts were sent from backend
This was due to "limit"  set to 5
This new API at route "broadcast/all" has no limit and sends all broadcasts
This API will be called only when no tags/filters are applied
Types of changes
Put an x in the boxes that apply

[x ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x ] Documentation update (Documentation content changed)
[ ] Other (please describe):

Checklist
Put an x in the boxes that apply

[ x] My code follows the style guidelines of this project
[ x] I have performed a self-review of my own code
[ x] I have commented my code, particularly in hard-to-understand areas
[x ] I have made corresponding changes to the documentation
[x ] My changes generate no new warnings
[x ] My changes does not break the current system and it passes all the current test cases.

Screenshots
Please attach the screenshots of the changes made in case of change in user interface
Other information
Any other information that is important to this pull request
Here is video recording showing working of this API
It also shows difference
-> "/broadcast/"  returning only 5 broadcasts even when no filters are applied
-> "broadcast/all" returning all broadcasts in DB"
Link: https://www.recordjoy.com/view/JvEC7Rgzh7Nmtkf6HUNO

Yes, did that ma'am.
I hope it's fine as I have made pull request via same existing request.


Sik-Ho Tang | Review -- MoCo: Momentum Contrast for Unsupervised Visual Representation Learning.

Sik-Ho Tang. Review — MoCo: Momentum Contrast for Unsupervised Visual Representation Learning.

Overview
Momentum Update for the Key Encoder, Outperforms Exemplar-CNN, Context Prediction, Jigsaw Puzzles, RotNet/Image Rotations, Colorization, DeepCluster, Instance Discrimination, CPCv1, CPCv2, CMC.

Momentum Contrast (MoCo).
Momentum Contrast for Unsupervised Visual Representation Learning
MoCo, by Facebook AI Research (FAIR)
2020 CVPR, Over 2400 Citations
Self-Supervised Learning, Contrastive Learning, Image Classification, Object Detection, Segmentation

A dynamic dictionary with a queue and a moving-averaged encoder are built. This enables building a large and consistent dictionary on-the-fly that facilitates contrastive unsupervised learning.

This can tackle the inconsistent dictionary problem caused by Instance Discrimination.

Contrastive Learning

Left: Contrastive Learning Without Dictionary Lookup, Right Contrastive Learning With Dictionary Lookup.

Contrastive learning since DrLIM, and its recent developments, can be thought of as training an encoder for a dictionary look-up task.
Consider an encoded query $q$ and a set of encoded samples $\{k_{0},k_{1},k_{2},...\}$ that are the keys of a dictionary.
Assume that there is a single key (denoted as $k_{+}$) in the dictionary that $q$ matches. A contrastive loss in DrLIM is a function whose value is low when $q$ is similar to its positive key $k_{+}$ and dissimilar to all other keys (considered negative keys for $q$).
With similarity measured by dot product, a form of a contrastive loss function, called InfoNCE (CPCv1), is considered in this paper:

where $\tau=0.07$ is a temperature hyper-parameter as in Instance Discrimination.

Contrastive learning since DrLIM, and its recent developments, can be thought of as training an encoder for a dictionary look-up task.

Momentum Contrast (MoCo)

Momentum Contrast (MoCo).
The dictionary is dynamic in the sense that

the keys are randomly sampled,
and that the key encoder evolves during training.

The hypothesis is that good features can be learned by a large dictionary that covers a rich set of negative samples, while the encoder for the dictionary keys is kept as consistent as possible despite its evolution.

Momentum Update

Using a queue makes it intractable to update the key encoder by back-propagation.
A naive solution is to copy the key encoder $f_{k}$ from the query encoder $f_{q}$, ignoring this gradient. But this solution yields poor results. It is hypothesized that such failure is caused by the rapidly changing encoder that reduces the key representations' consistency**.

Formally, denoting the parameters of $f_{k}$ as $\theta_{k}$ and those of $f_{q}$ as $\theta_{q}$, $\theta_{k}$ is updated by:

Here, $m\in [0,1)$ is a momentum coefficient. Only the parameters $\theta_{q}$ are updated by back-propagation.

As a result, though the keys in the queue are encoded by different encoders (in different mini-batches), the difference among these encoders can be made small.
In experiments, a relatively large momentum (e.g., $m=0.999$, default) works much better than a smaller value (e.g., $m=0.9$), suggesting that a slowly evolving key encoder is a core to making use of a queue.

Some Other Details

MoCo Algorithm.

Query $x_{q}$ and key $x_{k}$ are two augmented versions of $x$, i.e., two random "views" of the same image under random data augmentation to form a positive pair.
The data augmentation setting follows:

a $224\times 224$-pixel crop is taken from a randomly resized image,
and then undergoes random color jittering,
random horizontal flip,
and random grayscale conversion.

The queries and keys are respectively encoded by their encoders, $f_{q}$ and $f_{k}$.
Similar to Instance Discrimination, a ResNet is as the encoder, whose last fully-connected layer (after global average pooling) has a fixed-dimensional output (128-D). This output vector is normalized by its $L2$-norm. This is the representation of the query and key.

Shuffling BN

Using BN prevents the model from learning good representations. The model appears to "cheat" the pretext task and easily finds a low-loss solution.
Multiple GPUs are used to train the model and BN is performed on the samples independently for each GPU (as done in common practice).
For the key encoder $f_{k}$, the sample order in the current mini-batch is shuffled before distributing it among GPUs (and shuffle back after encoding); The sample order of the mini-batch for the query encoder $f_{q}$ is not altered.
This ensures the batch statistics used to compute a query and its positive key come from two different subsets. This effectively tackles the cheating issue and allows training to benefit from BN.

Ablation & ImageNet Results
Datasets

ImageNet-1M (IN-1M): 1.28 million images in 1000 classes (often called ImageNet-1K).
Instagram-1B (IG-1B): Following WSL, this is a dataset of ~1 billion (940M) public images from Instagram.
For IN-1M, a mini-batch size of 256 ($N$ in Algorithm 1) is used in 8 GPUs. It takes ~53 hours to train ResNet-50.
For IG-1B, a mini-batch size of 1024 is used in 64 GPUs. It takes about 6 days to train ResNet-50.
Linear Classification Protocal: A very common protocol that a classifier is trained on the global average pooling features of a ResNet, for 100 epochs. 1-crop, top-1 classification accuracy on the ImageNet validation set is reported.

Ablation: Contrastive Loss Mechanisms

Comparison of three contrastive loss mechanisms under the ImageNet linear classification protocol.

Overall, all three mechanisms benefit from a larger $K$.
The end-to-end mechanism performs similarly to MoCo when $K$ is small. But the largest mini-batch a high-end machine (8 Volta 32GB GPUs) can afford is 1024 for the end-to-end mechanism.
The memory bank mechanism in Instance Discrimination can support a larger dictionary size. But it is 2.6% worse than MoCo.

Ablation: Momentum

Study of Momentum $m$.
It performs reasonably well when $m$ is in $0.99\sim 0.9999$, showing that a slowly progressing (i.e., relatively large momentum) key encoder is beneficial.
When $m$ is too small (e.g., $0.9$), the accuracy drops considerably.

SOTA Comparison

Comparison under the linear classification protocol on ImageNet.

Besides ResNet-50 (R50) [33], 2 and 4 wider (more channels) variants are also tested.
$K=65536$ and $m=0.999$.

MoCo with R50 performs competitively and achieves 60.6% accuracy, better than all competitors of similar model sizes (~24M).
MoCo benefits from larger models and achieves 68.6% accuracy with R50×4 outperforms such as Exemplar-CNN, Relative Context Prediction, Jigsaw Puzzles, RotNet/Image Rotations, Colorization, DeepCluster, Instance Discrimination, LocalAgg, CPCv1, CPCv2, CMC.

"MoCo v2", an extension of a preliminary version of this manuscript, achieves 71.1% accuracy with R50 (up from 60.6%), given small changes on the data augmentation and output projection head.

Transferring Features Results

Features produced by unsupervised pre-training can have different distributions compared with ImageNet supervised pre-training.
Feature normalization is adopted during fine-tuning: Fine-tune with BN that is trained, BN in the newly initialized layers (e.g., FPN) is also used.

PASCAL VOC Object Detection

The detector is Faster R-CNN with a backbone of R50-dilated-C5 or R50-C4. All layers are fine-tuned end-to-end.

Object detection fine-tuned on PASCAL VOC trainval07+12 In the brackets are the gaps to the ImageNet supervised pre-training counterpart.

(a): For R50-dilated-C5, MoCo pre-trained on IN-1M is comparable to the supervised pre-training counterpart, and MoCo pretrained on IG-1B surpasses it.
(b): For R50-C4, MoCo with IN-1M or IG-1B is better than the supervised counterpart: up to +0.9 AP50, +3.7 AP, and +4.9 AP75.

Comparison with previous methods on object detection fine-tuned on PASCAL VOC trainval2007.

For the AP50 metric, no previous method can catch up with its respective supervised pre-training counterpart.

MoCo pre-trained on any of IN-1M, IN-14M (full ImageNet), YFCC-100M [55], and IG-1B can outperform the supervised baseline.

COCO Object Detection and Segmentation

Object detection and instance segmentation fine-tuned on COCO.

The model is Mask R-CNN [32] with the FPN [41] or C4 backbone, with BN tuned, is used.
With the 1× schedule, all models (including the ImageNet supervised counterparts) are heavily under-trained, as indicated by the ~2 points gaps to the 2× schedule cases.

With the 2× schedule, MoCo is better than its ImageNet supervised counterpart in all metrics in both backbones.

Reference

[2020 CVPR] [MoCo] Momentum Contrast for Unsupervised Visual Representation Learning.


Automatically convert encrypted values to Sensitive[T]

So I'm learning to use secrets and I stumbled upon https://blog.example42.com/2019/04/04/puppet_sensitive_data/ and https://puppet.com/blog/my-journey-securing-sensitive-data-puppet-code/. Both blogs get into error when they declare class parameter as Sensitive[String] $foo and receive String, and solve it by manually converting data types for each value that's deemed sensitive in YAML like this:
lookup_options:
  profile::db::password:
    convert_to: "Sensitive"

Couldn't hiera-eyaml do it automatically for all encrypted types?
I guess to not break backward compatibility this would have to be an opt-in in hiear.yaml, e.g.:
defaults:
  lookup_key: eyaml_lookup_key
  options:
    eyaml_convert_to_sensitive: true
    pkcs7_private_key: /etc/puppetlabs/puppet/eyaml/private_key.pkcs7.pem
    pkcs7_public_key: /etc/puppetlabs/puppet/eyaml/public_key.pkcs7.pem

I assume that this project is for editing EYAML while Puppet itself decrypts them so it's more of a request to change eyaml_lookup_key.rb.

Is this something thats likely to be done at some point.   I'm seeing more modules expecting sensitive strings and TBH its a PITA having to add lookup_options for each piece of hieradata.

I am happy to review such a PR. Would you be interested in providing one?

I'm afraid it's probably beyond my skills to do so.


Sensor "online_status" available from Home Assistant ?

Hi :)
Apologies for opening a second issue in a day, I love how your lib integrates to Home assistant but I think I misunderstand something.
In recent commits, you added a binary_sensor named online_status, but I cannot find it in home assistant.
I would like to use it for a conditional card in lovelace UI, so I get an alternative presentation when the device is not available (instead of having all values showing 'unavailable').
Is it exported to mqtt or only designed for internal/web interface ?
On the same flavor (using recent updates), should I be able to access to a web interface when connecting to the eps32 ip adress with a browser ?
If so, I probably don't compile the most up to date version because I can't access it... Or maybe it is served on a specific port ?
Thank you again for your help.

Us the binary sensor online_status the entity you are looking for? It is part of your YAML already?

The ESPHome Integration of Home Assistant is able to talk to the native api of the ESPHome node directly. It's the recommended way to talk to ESPHome devices if Home Assistant is in use. In this case no MQTT broker is required anymore.
I assume the MQTT auto-discovery of the exposed entities didn't work well here. If you switch to the native api I'm pretty sure you will find the "online status" sensor entities this time.

It does work with api insead of MQTT...
Still a bit frustrated not to understand what happened but I'll switch to api, seems simpler.
Thank you !!


Replace rstrip with correct handling

This was causing various packages ending in j or s to have their names mangled and therefore not be found, e.g.:
'react-sparklines.js'.rstrip('.js') == 'react-sparkline'

@philippjfr I think I messed up the GitHub action to run the CI flow. Could you add the following to .github/workflows/test/yml:
on:
  pull_request:
    branches:
      - main


soroban-cli: value overhaul update - contract code fetching for invoke arg parsing, inspect, read

What ?
soroban-cli: value overhaul update - contract code fetching for invoke arg parsing, inspect, read
Epic
https://github.com/stellar/soroban-tools/issues/471

This should also be done