How to verify adbe.x509.rsa.sha1 signature?

Cannot use endesive.pdf.verify to verify it
if I use the example of pdf-verify-rsa_sha1.py:
pdf = PdfFileReader(fname)
catalog = pdf.trailer["/Root"]
docmdp = catalog["/Perms"]["/DocMDP"]

There is no ["/Perms"].
Any other method？

Endesive supports only one of several ways of signing pdf documents, maybe pyHanko supports the one you write about.

Thanks,I'll have a try.


Add git commit hashes to version for non-official release builds

Describe the problem you are trying to solve

Add git commit hashes to version for non-official release builds
Describe the solution you'd like

The feature branch name and commit hash should be represented in version information
emitted by tremor in the cli, api and other output for developer builds. This aids in replication
of issues and in identifying heritage of a build when multiple versions of tremor are in use
on the same environment.
Notes

If this is an implementation of an RFC provide a URL
to the RFC this enhancement implements.
If this is a major enhancement or contribution an RFC may be required. It is ok to submit an enhancement
first and our core team will assist with major contributions. In general, major contributions should be
discussed with the community before submission.

yea sounds like a good'n I'm gonna give this a swing

close?


Incorrect output: equal section is included in the conflict.

### O:
Aa
Bb
Cc
### A:
Aa
Bb
Cc
Dd
Ee
Ff
### B:
Aa
Bb
For above case diff3 produces following output
Aa
Bb
<<<<<<<
Cc
Dd
Ee
Ff
=======
>>>>>>>
But this code is producing following output
<<<<<<<
Aa
Bb
Cc
Dd
Ee
Ff
=======
Aa
Bb
>>>>>>>
Aa and Bb is common in two side of the conflict so shouldn't it be moved out of conflict?

Thanks for reporting this! It should be fixed in the latest release.


Better organizing of issues and releases

I am proposing to enable the projects feature of GitHub for this project. This would allow the community what still needs to be done or is still unfinished for the upcoming release.
This would add transparency and better steering of the project. I can also voluntier and contribute by organizing the issues add adding order to them.

This is something that we considered when this feature was introduced. We decided to not go for it since we (at SUSE internally) already have our own Trello board for managing the different tasks.
That being said, since we are getting more contributions from the community, it's true that it makes sense to open this part too. I've never tried the projects feature of Github, so it could go terribly wrong, but maybe it's worth a shot.
@vitoravelino what do you think about trying it for the 2.4 release ? (it would be a very simple kanban kind of workflow: "to do", "doing" and "done").

I think it's a good idea because to gives the community an idea of what's going on. People don't know what's currently being done in the milestone page unless we add a label, which is not ideal. Having columns make things easier.
Everything is an issue there, so I guess we won't have any trouble.

I've just created a board for 2.3 and 2.4 👍 Thanks for the suggestion.


struct.error: unpack requires a buffer of 6 bytes

I'm on macOS using python 3.10
I have this code which I got and slightly changed from a post,
from pdfminer.layout import LAParams, LTTextBox
from pdfminer.pdfpage import PDFPage
from pdfminer.pdfinterp import PDFResourceManager
from pdfminer.pdfinterp import PDFPageInterpreter
from pdfminer.converter import PDFPageAggregator

rsrcmgr, laparams = PDFResourceManager(), LAParams()
device = PDFPageAggregator(rsrcmgr, laparams=laparams)
interpreter = PDFPageInterpreter(rsrcmgr, device)

fp = open("my_pdf", 'rb')
pages = PDFPage.get_pages(fp)
for page in pages:
    interpreter.process_page(page)
    layout = device.get_result()
    print("It worked")

However, when I use it on some pdfs it gives me this error:
Traceback (most recent call last):
  File "MY_DIRECTORY/create_database.py", line 38, in <module>
    interpreter.process_page(page)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfinterp.py", line 991, in process_page
    self.render_contents(page.resources, page.contents, ctm=ctm)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfinterp.py", line 1010, in render_contents
    self.execute(list_value(streams))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfinterp.py", line 1036, in execute
    func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfinterp.py", line 966, in do_Do
    interpreter.render_contents(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfinterp.py", line 1010, in render_contents
    self.execute(list_value(streams))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfinterp.py", line 1036, in execute
    func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfinterp.py", line 903, in do_Tj
    self.do_TJ([s])
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfinterp.py", line 896, in do_TJ
    self.device.render_string(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfdevice.py", line 133, in render_string
    textstate.linematrix = self.render_string_horizontal(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdfdevice.py", line 170, in render_string_horizontal
    for cid in font.decode(obj):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/pdffont.py", line 1174, in decode
    return self.cmap.decode(bytes)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdfminer/cmapdb.py", line 136, in decode
    return struct.unpack(">%dH" % n, code)
struct.error: unpack requires a buffer of 6 bytes

This is one of the pdf giving me issues:
my_pdf.pdf

I posted the solution here if anyone needs it:
https://stackoverflow.com/questions/72920155/pdfminer-struct-error-requires-buffer-of-x-bytes/72936826#72936826

This has nothing to do with the package. It is a problem with the pdf file. Use the following command to fix it.
gs -o b.pdf -sDEVICE=pdfwrite a.pdf


Fix return of interpolated string

Because of the way we are doing string-replacement and not AST->AST transformation, we are quite sensitive to the order the transforms run.
In this case, if you rewrite the -> and the "# first, the patcher can't find any original characters to target when it tries to insert the return.

Thanks!

Released in v1.16.0.


The terminal panel sometimes opens above and sometimes below the find and replace panel

Steps to Reproduce

Open a new clean Atom instance.
Open a new terminal.
Open a find & replace panel.
Open another terminal.

This is probably related to the order of the panels in the Atom DOM. Personally I think the terminal should always be below the find & replace panel.
Versions
Windows 10.0.16299 x64

Atom    : 1.22.1
Electron: 1.6.15
Chrome  : 56.0.2924.87
Node    : 7.4.0

apm  1.18.8
npm  3.10.10
node 6.9.5 x64
python 2.7.14
git 2.15.0.windows.1
visual studio 2015

PlatformIO IDE Terminal 2.7.0

I can confirm this issue with latest 2.9.0 and atom 1.34.0, however this seems external to project. So Ill mark it as such for now.


Can we have the forward Forward algorithm   and less lines for a like 100 neuron network

Hi there,
Please use adjWeights or similar to implement forward forward algo.
You can always store neuron objects into arrays to save lines of code and loop through neurons, the structure of the arrays is left to you and how you want to iterate on it. The examples dont show the array thinking because this library wants to provide unlayered ANNs. layered ANNs (arrays of neurons) can be created by the user itself.
I am not actively contributing here.


urlrewrite_redirect

I really don't know how this thing work, can somebody help me what to write where, if I wanted this link:
http://tracker.uraharashop.hu/details.php?id=1166&hit=1
to became this:
http://tracker.uraharashop.hu/download.php?torrent=1166
The original RSS link show only the details but not the download link, so I get these errors in log:
2015-11-22 23:50 INFO     urlrewriter   Uraharashop     Entry '[UraharaShop] One-Punch Man - 08 [720p]' URL rewritten to http://tracker.uraharashop.hu/login.php?returnto=%2Fdetails.php%3Fid%3D1166%26hit%3D1 (with urlrewrite_redirect)
2015-11-22 23:50 INFO     download      Uraharashop     Downloading: [UraharaShop] One-Punch Man - 08 [720p]
2015-11-22 23:50 ERROR    entry         Uraharashop     Failed [UraharaShop] One-Punch Man - 08 [720p] (Unexpected html content received from `http://tracker.uraharashop.hu/login.php?returnto=%2Fdetails.php%3Fid%3D1166%26hit%3D1` - maybe a login page?)
2015-11-22 23:50 INFO     task          Uraharashop     Plugin transmission has requested task to be ran again after execution has completed.
2015-11-22 23:50 VERBOSE  task          Uraharashop     FAILED: `[UraharaShop] One-Punch Man - 08 [720p]` by transmission plugin because unexpected html content received from `http://tracker.uraharashop.hu/login.php?returnto=%2Fdetails.php%3Fid%3D1166%26hit%3D1` - maybe a login page?

well, looks like a simple regex:
  ut5:
    manual: yes
    mock:
      - { title: 'asd', url: 'http://tracker.uraharashop.hu/details.php?id=1166&hit=1' }
    manipulate:
      - url:
          replace:
            regexp: '^.*\?id=([0-9]+).*'
            format: 'http://tracker.uraharashop.hu/download.php?torrent=\1'

test:
-- Undecided: --------------------------
title            : asd
url              : http://tracker.uraharashop.hu/download.php?torrent=1166
original_url     : http://tracker.uraharashop.hu/details.php?id=1166&hit=1
quality          : <LazyField - value will be determined when it is accessed>
task             : ut5

This is not a bug, please use the flexget forums located at http://discuss.flexget.com/  or join the chat channel http://webchat.freenode.net/?channels=#flexget


Infinite loop with npm.run()

Hi
I found a bug while launching an npn-run-all-based script with npm.run(). You can watch the bug opening this example on CodeSandbox or play with the repo that I shared.
The issue is: if I have a
"run:examples:s": "npm-run-all -s example:**"
script in my package.json file and if I leverage the native
npm.run("run:examples:s") API to run a script (instead of the standard $ npm run run:examples:s)
npm-run-all goes to an infinite loop.
I hope it's clear, let me know if you need me to explain it better.
Anyway: thank you so much for the amazing library 😊
Thank you
Stefano

Thank you for your report.
But that's not a bug in npm-run-all.
The cause is that you set $npm_execpath environment variable with an invalid value. The $npm_execpath must be a valid path to npm or a compatibility tool. But the npm.run() function seems to set require.main.filename to the environment variable. In your case, that value is not an npm compatibility tool.

Hi @mysticatea
Thank you so much for the feedback! I'm trying to find a feasible path to solve the problem but I think I can't do anything to solve that 😕

npm sets the $npm_execpath during the npm.run() execution, so I can't set it just before it runs the npm-run-all-based command
npm-run-allaccepts an npmPath option. I could add it if I detect that the script body contains  npm-run-all, run-s, etc. but I can't identify it in a subsequent command

Do you have more suggestions about how I can handle the problem?
Thank you so much
Stefano

I think that you should open an issue at https://github.com/npm/npm-lifecycle.


Proposal: Module names should be singular

Proposal: Module names should be singular
Author: Toshio Kuratomi @abadger
Date: 2016/04/19

Status: New
Proposal type: module design
Targeted Release: 2.1
Associated PR:
Estimated time to implement: 1 hour

Motivation
We want to make it easier for users to remember the names of modules.
Problems
it can be hard to remember names of modules when some of them are plural and some are singular.  It gets even harder when modules are multiword: Was that module named vmware_vmkernels_ip_config.py, vmware_vmkernel_ip_configs.py, vmware_vmkernels_ip_configs.py, or vmware_vmkernel_ip_config.py?
It can also be hard to remember a name when there's inconsistency inside of a group of modules.  This can be made even harder when a module belongs to several groups.  We might have docker_images.py and therefore someone might look for docker_files.py.  A different person might be using the file.py module and therefore look for docker_file.py.
Solution proposal

All new modules will be named using singular noun forms.  Using the examples above we'd have:

vmware_vmkernel_ip_config.py
docker_image.py
docker_file.py
file.py

Existing modules which use plural should get aliases to singular form.
New modules may get aliases to plural form if it is deemed confusing (for instance, numerous existing modules in a similar category used the plural form before we instituted this policy).  For example:

plan9_file.py may have an alias of _plan9_files.py if many existing modules end with the plural, _files, suffix.

The exception to this rule is when the plural form is part of a proper noun.  Names of web services, names of command line tools (not their options), and companies or products fall under this.  We also consider Ansible's Facts modules to be covered by this exception.  Some examples of modules under this exception:

profitbricks.py (ProfitBricks is a cloud computing company)
rax_facts.py (this is a facts module)
iptables.py (iptables is both the name of a linux kernel subsystem and the command line tool for managing it)

Documentation
We should add documentation of this requirement to the Module Checklist in docsite/rst/developing_modules.rst
Alternatives

We could pluralize everything.  Reasons not to use this alternative were: plural rules vary and so non-native speakers would have a harder time determining the module name, most modules currently use singular so it would affect far more modules than changing to singular.
We could have more exceptions for:

Command line tool subcommands.  This was decided against as modules don't absolutely parallel the command line tool, it doesn't help the case where an upstream hasn't normalized their own arguments, and it doesn't help when a module falls into multiple categories.  (However, aliases are appropriate in this situation).

How many modules are affected by this @abadger ?
My analysis says:

os_subnets_facts
os_networks_facts
rax_files_objects
os_server_actions
postgresql_privs
rax_cbs_attachments
rax_clb_nodes
rax_files
rax_files_objects
mysql_variables
cl_ports
dpkg_selections
macports
github_hooks
osx_defaults
pam_limits
win_updates
logentries

i can see several exceptions in that list, mostly cause of common names or tools 'logentries' is a company for example

Yeah, there shouldn't be too many current modules affected by this.  As bcoca notes, logentries is a company, macports is the name of a project, pam_limits is the proper name of a PAM module.  Here's the quick list of current modules I found that should get singular aliases:

cl_ports.py
dpkg_selections.py
ec2_vpc_dhcp_options.py
github_hooks.py
include_vars.py
mysql_variables.py
os_networks_facts.py
os_server_actions.py
os_subnets_facts.py
osx_defaults.py
postgresql_privs.py
rax_cbs_attachments.py
rax_clb_nodes.py
rax_files.py
rax_files_objects.py
win_updates.py

This was brought up in a new modules meeting where it was questioned whether a new module should take plural or singular form.

_facts, its a 'ansible standard' name for this type of plugin
dpkg_selections, win_updates, osx_defaults are based on the name of tool

Sorry I left this so long... here's a new list.  Please propose things to remove from the list:

./cloud/amazon/ec2_vpc_dhcp_options.py
./cloud/rackspace/rax_cbs_attachments.py
./cloud/rackspace/rax_files.py
./cloud/rackspace/rax_clb_nodes.py
./cloud/rackspace/rax_files_objects.py
./cloud/ovirt/ovirt_nics.py
./cloud/ovirt/ovirt_templates.py
./cloud/ovirt/ovirt_mac_pools.py
./cloud/ovirt/ovirt_hosts.py
./cloud/ovirt/ovirt_external_providers.py
./cloud/ovirt/ovirt_clusters.py
./cloud/ovirt/ovirt_vmpools.py
./cloud/ovirt/ovirt_disks.py
./cloud/ovirt/ovirt_groups.py
./cloud/ovirt/ovirt_storage_domains.py
./cloud/ovirt/ovirt_host_networks.py
./cloud/ovirt/ovirt_vms.py
./cloud/ovirt/ovirt_permissions.py
./cloud/ovirt/ovirt_tags.py
./cloud/ovirt/ovirt_datacenters.py
./cloud/ovirt/ovirt_quotas.py
./cloud/ovirt/ovirt_users.py
./cloud/ovirt/ovirt_affinity_labels.py
./cloud/ovirt/ovirt_networks.py
./cloud/profitbricks/profitbricks_volume_attachments.py
./cloud/openstack/os_server_actions.py
./database/mysql/mysql_variables.py
./database/postgresql/postgresql_privs.py
./network/cumulus/cl_ports.py
./network/nxos/nxos_snmp_traps.py
./network/nxos/nxos_ntp_options.py
./source_control/github_hooks.py
./monitoring/logentries.py
./storage/netapp/netapp_e_snapshot_images.py
./utilities/logic/include_vars.py
./utilities/logic/set_stats.py

This is now documented (cia  https://github.com/ansible/ansible/pull/21021)
It will appear on http://docs.ansible.com/ansible/dev_guide/developing_modules_documenting.html when docs are next pushed live

How to rename a module with an alias to the old name:

Rename the module file to the new name.
Edit documentation to reflect the new name.
Make a symlink of _oldname.py that points to newname.py

Current list of affected modules:
./cloud/amazon/ec2_vpc_dhcp_options.py
./cloud/openstack/os_server_actions.py
./cloud/ovirt/ovirt_affinity_groups.py
./cloud/ovirt/ovirt_affinity_labels.py
./cloud/ovirt/ovirt_clusters.py
./cloud/ovirt/ovirt_datacenters.py
./cloud/ovirt/ovirt_disks.py
./cloud/ovirt/ovirt_external_providers.py
./cloud/ovirt/ovirt_groups.py
./cloud/ovirt/ovirt_host_networks.py
./cloud/ovirt/ovirt_hosts.py
./cloud/ovirt/ovirt_mac_pools.py
./cloud/ovirt/ovirt_networks.py
./cloud/ovirt/ovirt_nics.py
./cloud/ovirt/ovirt_permissions.py
./cloud/ovirt/ovirt_quotas.py
./cloud/ovirt/ovirt_snapshots.py
./cloud/ovirt/ovirt_storage_connections.py
./cloud/ovirt/ovirt_storage_domains.py
./cloud/ovirt/ovirt_tags.py
./cloud/ovirt/ovirt_templates.py
./cloud/ovirt/ovirt_users.py
./cloud/ovirt/ovirt_vmpools.py
./cloud/ovirt/ovirt_vms.py
./cloud/pubnub/pubnub_blocks.py
./cloud/rackspace/rax_clb_nodes.py
./cloud/rackspace/rax_files.py
./cloud/rackspace/rax_files_objects.py
./database/mysql/mysql_variables.py
./database/postgresql/postgresql_privs.py
./database/proxysql/proxysql_backend_servers.py
./database/proxysql/proxysql_global_variables.py
./database/proxysql/proxysql_mysql_users.py
./database/proxysql/proxysql_query_rules.py
./database/proxysql/proxysql_replication_hostgroups.py
./network/avi/avi_cloudproperties.py
./network/avi/avi_controllerproperties.py
./network/avi/avi_seproperties.py
./network/cloudengine/ce_snmp_traps.py
./network/cumulus/_cl_ports.py
./network/f5/bigip_configsync_actions.py
./network/nxos/nxos_ntp_options.py
./network/nxos/nxos_snmp_traps.py
./packaging/os/dpkg_selections.py
./source_control/github_hooks.py
./storage/netapp/netapp_e_snapshot_images.py
./storage/netapp/sf_check_connections.py
./windows/win_updates.py

Here is the regexp file I'm using as a filter:
(rds|sns|alias|stats|dns|facts|status|zfs|pam_limits|_os|known_hosts|jboss|address|fs|ucs)\.py
alternatives
aws_kms
capabilities
cbs
efs
include_vars
iptables
kubernetes
logentries
macports
nagios
osx_defaults
profitbricks
redis
serverless
xbps

Will submit an initial PR with a few changed shortly.

add check in module to see which name it was invoked with, to emit a deprecation notice when old one is used

@samdoran I dont mind changing the f5 module mentioned. it should not have any real existing users yet because it is a partial for a larger HA feature which is not fully implemented.
I do have an enhancement to the regex to be made though, there is an upcoming f5 module to deal with HTTPS related monitors, so that plurality will want to be noted (at least for f5) so that it is not flagged as it is a proper protocol.

I will send a PR for the f5 module mentioned

@caphrim007 Thanks! Much appreciated.

@samdoran f5 can be removed from the list

this was 'done' for existing modules, now with collections this becomes a optional rule to follow by their authors.


Resizing the terminal window results in glitchy text-rendering behavior.

Environment
Windows build number: Microsoft Windows NT 10.0.19041.0
Windows Terminal version (if applicable): 1.1.2021.0

Steps to reproduce

Run any program which re-writes a line of text (such as a python script which overwrites the current line by moving the cursor up and clearing it, and then re-writing a new line- and does this action frequently in a loop, and attempt to resize the window.
Expected behavior
Resizing the window should not affect the text at all, it should remain as it was properly printed before the resize.
Like so: https://gyazo.com/33d6e441d0bb8105ec118c6a9e69f900

Actual behavior
The text being constantly overwritten is printed multiple times as if the line up and line clear ansi escape codes are not properly functioning while the windows is being resized.
Like so: https://gyazo.com/47d1ddba7916222121417d2e4776788a

Is this somewhat related to #3088 ?

Yep. That's exactly what it is. My bad on the dupe, I don't think I would've ever found it as I do not know the exact wording of this scenario. Hope it gets fixed though. 👍


chore: update README about MavenCentral

Summary

Update README about MavenCentral

Pull Request Test Coverage Report for Build 1698

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

Totals

Change from base Build 1696:
0.0%

Covered Lines:
4480

Relevant Lines:
4957

💛  - Coveralls


Update SECURITY.md

Description
Align the SECURITY.md file with the UXL Foundation requirements.
Fixes # - issue number(s) if exists

[x] I have reviewed my changes thoroughly before submitting this pull request.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have updated the documentation to reflect the changes, if necessary (updated in # - add PR number)
[ ] The unit tests pass successfully.
[ ] I have run it locally and tested the changes extensively.
[ ] I have resolved any merge conflicts that might occur with the base branch.
[x] Git commit message contains an appropriate signed-off-by string (see CONTRIBUTING.md for details)
[x] I have added a respective label(s) to PR if I have a permission for that.

Signed-off-by: Alexandra Epanchinzeva<EMAIL_ADDRESS>

@rozhukov - FYI

/intelci: run


Update Wallet doc Transferring objects section as Transferring coins

Also including a TODO to clarify a related note

Thanks for making these changes, much clearer now 😄


CSRF being triggered on all routes

I recently discovered that CSRF protection is triggered on all routes over POST.  To me, this seems a little strange.  Expected behaviour should be to only trigger on routes defined within routes.php.
I am aware that a route can be added to the $except variable within the middleware.
Because CSRF is being triggered there is quite a bit of overhead on the system versus a standard 404, so it could be a potential attack vector for a denial of service attack.
I came across this issue when an external Exchange server started bombarding our server with /autodiscover/autodiscover.xml POST requests, which flooded our New Relic error reports with false errors of CSRF token mismatch exceptions, rather than simply 404ing.  More details on this exact issue can be found on Stack Overflow (http://stackoverflow.com/questions/33342784/requests-to-autodiscover-autodiscover-xml-causing-tokenmismatchexception/33366209#33366209).
Is this behaviour by design, or an unintended symptom of using middleware?

This is the intended behaviour. If you don't like it, that's fine, just roll with your own csrf middleware.

So you're saying non-existing routes throwing a token mismatch exception rather than 404 for anything other than GET requests is intended?
That seems very odd.
Surely requesting a page that doesn't exist should throw a 404, regardless of the request type?

Surely this could cause a ton of problems if this was exploited.
What if someone bombarded a site with POST requests, with incorrect tokens? Wouldn't this just cripple the system?
Checking if the route even exists beforehand seems a lot more logical, in my opinion.

Checking if the route even exists beforehand seems a lot more logical, in my opinion.

Middleware is execute before routing is handled, unless you make it as a route middleware (which you can do so easily in Laravel).

So you're saying non-existing routes throwing a token mismatch exception rather than 404 for anything other than GET requests is intended?

You also can handle token mismatch exception from within app/Exceptions/Handler.php.

@crynobone I'm not disagreeing with you, but with middleware working in the way it does, perhaps middleware isn't the best place for CSRF handling?
It doesn't make sense to call CSRF handling on every request, whether it exists or not.  Handling the exceptions is not fixing the issue - the exceptions shouldn't be getting thrown in the first place.

:+1: I have to set CSRF check to route middleware in every project because of this.
Actually, the only middleware that should be handled before route resolving is maintenance mode check.
But I suppose this shouldn't be fixed in the core, but in the base laravel project.

I agree the CSRF protection shouldn't be run on every request, as mentioned previously it makes a DDoS attack much easier. If a route doesn't exist then a 404 should be thrown, the CSRF shouldn't come into it unless its a valid route.

Looks like I'm not the only one having this issue. Can this be reopened please?

If you want to only validate csrf on valid routes, then don't register the middleware in the http kernel. Register it on each route you want to protect. Simple. This is NOT a "bug". This can be continued on the forums if you want to discuss solutions.

Closing since a fix was merged.

Closing since a fix was merged.
#10758 was reverted. Is there another fix?

Hmm, ok.

I don't really see a huge issue here. It's really a matter of preference IMO. Some people are OK with the convenience of having the CSRF as a global middleware so you never have to worry about assigning it to routes. Others may be concerned about it adding overhead or the 404 situation. It is fairly easy to move it to a route middleware in your own application if you wish.

In my opinion the overhead/404 situation is very undesirable.  There are lots of scenarios someone would encounter this, and the origin of the problem isn't straight forward to find.  To that end I feel the default should be to have it moved to route middleware, rather than leaving devs to work out what is causing the issue.
Even a nod to this issue in the docs would be a help.

Agree with Mike here. Any request being handled in some way other than a 404, without it being defined in the route middleware, seems very much against the grain of expected behaviour.

Can we revive this issue?
Our team are dealing with a lot of TokenMismatchExceptions from script kiddies/bots trying to hack us, among with some real TokenMismatchExceptions and its really hard to filter out which kind is happening when we are monitoring services like New Relic.
We don't want to stop reporting this particular exception, since we often deal with cache issues that are real and demand work on our side, so this false positives bother us.
To add more context of what is happening, some bots do POSTs to URLs like azenv.php, bitrix/admin/index.php, wp-login.php, /webdav, /admin/Cms_Wysiwyg/directive/index, etc. (we can go on with this list if you want to).
Since the status is different than 404, the bots keep posting until they are banned by our firewalls (and then they change the IP and start again). This is really boring and it's not just a matter of "preference", so it would be better to have route resolution on these cases, or at least a config for it.

Sure, open to ideas here.

@taylorotwell, perhaps a TokenMismatchException should be a form of HttpException?
That would be enough for Exception\Handler to handle it properly.

Surely requesting a page that doesn't exist should throw a 404, regardless of the request type?

Isn't this the best default behaviour? It seems very odd for a TokenMismatchException to happen when the route doesn't even exist?


Warnning: psi feats calculate failed ...

Warnning: psi feats calculate failed ...
/home/Maderk/miniconda3/lib/python3.8/site-packages/dgl/heterograph.py:92: DGLWarning: Recommend creating graphs by dgl.graph(data) instead of dgl.DGLGraph(data).
dgl_warning(
你好，运行例子文件过后，报错如上，但是还是输出了Scores.csv，请问这样是否有影响，谢谢，部分环境如下
CUDA12.1
Pytorch2.1.0
dgl2.1.0
同时进行新的评估的时候，出现报错
python scripts/scoring.py -prefix ace -rec_fpath rec_1.pdb -ref_lig_fpath ligands.sdf -pose_fpath ace_decoys.mol2 -model models/saved_model.pth -out_fpath scores.csv
Traceback (most recent call last):
File "scripts/scoring.py", line 125, in
rec.clip_rec()
File "/home/Maderk/IGModel-master/scripts/load_receptor.py", line 197, in clip_rec
self.clip_rec_ca_xyz_tensor = torch.cat(clip_ha_ca_xyz, axis=0)
RuntimeError: torch.cat(): expected a non-empty list of Tensors
请问该如何解决

The PSI angles are usually not computed for residues located at the protein chain terminus, so this warning does not affect the outcome. According to your error log, this error occurs during clipping protein. You should provide a co-crystal ligand structure (-ref_lig_fpath) to serve as a reference for clipping.
Best regards!

ok,thanks!

通常不计算位于蛋白质链末端的残基的 PSI 角度，因此此警告不会影响结果。根据您的错误日志，此错误发生在剪裁蛋白质期间。您应该提供共晶配体结构 （-ref_lig_fpath） 作为削波的参考。
此致敬意！

One more question, I downloaded the receptor protein PDB file from the PDB official website and only retained the ATOM part, as shown below. When executing the program as an input file for the receptor protein, an error was reported
eg :
ATOM      1  N   ASP A  40      35.784  72.211  67.437  1.00 47.96
ATOM      2  CA  ASP A  40      35.164  71.098  66.663  1.00 47.50
ATOM      3  C   ASP A  40      36.244  70.263  65.985  1.00 47.34
ATOM      4  O   ASP A  40      36.117  69.044  65.862  1.00 47.51
ATOM      5  CB  ASP A  40      34.179  71.647  65.630  1.00 99.99
ATOM      6  CG  ASP A  40      34.848  72.539  64.603  1.00 99.99
ATOM      7  OD1 ASP A  40      36.042  72.315  64.308  1.00 99.99
ATOM      8  OD2 ASP A  40      34.180  73.463  64.091  1.00 99.99
ATOM      9  N   GLU A  41      37.307  70.929  65.547  1.00 46.68
ATOM     10  CA  GLU A  41      38.419  70.260  64.882  1.00 46.09
ATOM     11  C   GLU A  41      39.223  69.474  65.916  1.00 45.81
ATOM     12  O   GLU A  41      39.862  68.466  65.594  1.00 45.67
ATOM     13  CB  GLU A  41      39.315  71.298  64.200  1.00 46.87
ATOM     14  CG  GLU A  41      40.370  70.727  63.262  1.00 47.65
ATOM     15  CD  GLU A  41      39.776  70.111  62.005  1.00 48.95
ATOM     16  OE1 GLU A  41      38.997  70.801  61.309  1.00 48.20
ATOM     17  OE2 GLU A  41      40.096  68.939  61.708  1.00 49.03
LWarning: Recommend creating graphs by dgl.graph(data) instead of dgl.DGLGraph(data).
dgl_warning(
receptor parsed ...
0
Error: 0
1
Error: 1
2
Error: 2
3
Error: 3
4
Error: 4
5
Error: 5
6
Is it an issue with the DGL version? Or does it mean that the PDB file needs to be processed? If I use the PDB file provided in the example, this problem will not occur.Thanks!

This error is indeed difficult to pinpoint the cause. I suggest you modify lines 77-78 of the /IGModel/scripts/scoring.py script as follows:
"
except Exception as e:
print("Error:", idx, e)
"
then rerun to check the error message

This error is indeed difficult to pinpoint the cause. I suggest you modify of the /IGModel/scripts/scoring.py script as follows: " except Exception as e: print("Error:", idx, e) " then rerun to check the error messagelines 77-78

After modifying the code, an error is reported as follows
Error: 0 torch.cat(): expected a non-empty list of Tensors
1
Error: 1 torch.cat(): expected a non-empty list of Tensors
2
Error: 2 torch.cat(): expected a non-empty list of Tensors
3
Error: 3 torch.cat(): expected a non-empty list of Tensors
4
Error: 4 torch.cat(): expected a non-empty list of Tensors
5

I suspect the error here might be due to your ligand poses being too far from the defined pocket (greater than 8 angstroms). You need to double-check whether these ligand poses are generated based on the pocket specified by ref_lig_fpath.

ok thanks

Perhaps the data I found for testing it was quite casual. I used decoys data before molecular docking, which explains why this error occurred. Thank you again


L6218E: Undefined symbol asm (referred from ad9833.o)

Hi I have this problem when I want compile the code in keil ide my current micro is stm32f103c8t6 what should i do with this error

In the code, I used assembly code "nope" for timing purposes, generating a delay. However, there seems to be a discrepancy between the "nope" instruction in Keil IDE (which I'm unfamiliar with) and GCC. I suggest either finding a code for assembly nop for Keil IDE or using a traditional delay method.


Error: Cannot find module '@actions/core'

I'm trying to use the master branch of azure/aci-deploy since v1 contains the error with set-env in @actions/core (which was fixed with https://github.com/Azure/aci-deploy/pull/27), but now I'm getting an error where the '@actions/core' module can't be found.
I tried forking the repo and creating a v2 to see if that would resolve it, but no luck.
2020-11-17T15:17:51.9589709Z ##[group]Run azure/aci-deploy@master
2020-11-17T15:17:51.9590224Z with:
2020-11-17T15:17:51.9590722Z   resource-group: ***
2020-11-17T15:17:51.9591312Z   dns-name-label: prd-container-iati-devops
2020-11-17T15:17:51.9592322Z   image: ***/prd-cont-img-iati-devops:36f5112357cf884cc63a105829a2ef08ec56bb2c
2020-11-17T15:17:51.9593256Z   registry-login-server: ***
2020-11-17T15:17:51.9594072Z   registry-username: ***
2020-11-17T15:17:51.9594694Z   registry-password: ***
2020-11-17T15:17:51.9595205Z   name: prd-container-iati-devops
2020-11-17T15:17:51.9595700Z   location: uksouth
2020-11-17T15:17:51.9596040Z   cpu: 1
2020-11-17T15:17:51.9596402Z   ip-address: Public
2020-11-17T15:17:51.9596753Z   memory: 1.5
2020-11-17T15:17:51.9597085Z   os-type: Linux
2020-11-17T15:17:51.9597461Z   ports: 80
2020-11-17T15:17:51.9597789Z   protocol: TCP
2020-11-17T15:17:51.9598198Z   restart-policy: Always
2020-11-17T15:17:51.9598562Z env:
2020-11-17T15:17:51.9598898Z   STAGE: prd
2020-11-17T15:17:51.9599537Z   IMAGE_NAME: cont-img-iati-devops
2020-11-17T15:17:51.9600110Z   CONTAINER_NAME: container-iati-devops
2020-11-17T15:17:51.9600675Z   TAG: 36f5112357cf884cc63a105829a2ef08ec56bb2c
2020-11-17T15:17:51.9601173Z   AZURE_HTTP_USER_AGENT:
2020-11-17T15:17:51.9601581Z   AZUREPS_HOST_ENVIRONMENT:
2020-11-17T15:17:51.9602095Z   DOCKER_CONFIG: /home/runner/work/_temp/docker_login_1605626249059
2020-11-17T15:17:51.9602546Z ##[endgroup]
2020-11-17T15:17:51.9931218Z internal/modules/cjs/loader.js:800
2020-11-17T15:17:51.9931730Z     throw err;
2020-11-17T15:17:51.9932094Z     ^
2020-11-17T15:17:51.9932299Z
2020-11-17T15:17:51.9933146Z Error: Cannot find module '@actions/core'
2020-11-17T15:17:51.9933619Z Require stack:
2020-11-17T15:17:51.9934657Z - /home/runner/work/_actions/azure/aci-deploy/master/lib/main.js
2020-11-17T15:17:51.9936232Z     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
2020-11-17T15:17:51.9937274Z     at Function.Module._load (internal/modules/cjs/loader.js:690:27)
2020-11-17T15:17:51.9937983Z     at Module.require (internal/modules/cjs/loader.js:852:19)
2020-11-17T15:17:51.9938601Z     at require (internal/modules/cjs/helpers.js:74:18)
2020-11-17T15:17:51.9939952Z     at Object.<anonymous> (/home/runner/work/_actions/azure/aci-deploy/master/lib/main.js:19:27)
2020-11-17T15:17:51.9940618Z     at Module._compile (internal/modules/cjs/loader.js:959:30)
2020-11-17T15:17:51.9941345Z     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
2020-11-17T15:17:51.9941991Z     at Module.load (internal/modules/cjs/loader.js:815:32)
2020-11-17T15:17:51.9942627Z     at Function.Module._load (internal/modules/cjs/loader.js:727:14)
2020-11-17T15:17:51.9943404Z     at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) ***
2020-11-17T15:17:51.9944191Z   code: 'MODULE_NOT_FOUND',
2020-11-17T15:17:51.9944913Z   requireStack: [ '/home/runner/work/_actions/azure/aci-deploy/master/lib/main.js' ]
2020-11-17T15:17:51.9945465Z ***
2020-11-17T15:17:52.0025493Z Post job cleanup.

node_modules has to be checked in.
https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/creating-a-javascript-action#commit-tag-and-push-your-action-to-github

You can't use the master branch directly, you will need a new tagged released branch. To run it in your fork, you can follow the following steps:

Fork the repo.
Fork a separate branch (to be used for running the action)
Do an npm install and npm run build and check in the node_modules folder to the branch as well.
Now you can refer to this action's branch and it should work

This is just a temporary solution until the new version gets deployed

@nosvalds node_modules are checked into the release branches. Closing this as the new release is being tracked in #26.


need to print detailed error when backup fails

Your Environments (required)
[vesoft@sandy data]$ ./br version
Nebula Backup And Restore Utility Tool,V-0.6.1
GitSha: 3c8c1cd-dirty
GitRef: update_version
How To Reproduce(required)
the following scenarios will cause the backup to fail, but the error messages are all:there is no meta files in backup info，the real error information needs to be viewed in the meta，I hope to print detailed error information in the br log:

When backup, there is OFFLINE METAD, STORAGED;
When backup, there are indexes of rebuilding;
When backup, the specified space is not found

I think this requires changes to the CreateBackup interface of the meta, when resp's meta files == empty, need return the detail err, then br-tool can print this details into log file. @shanlai


Collect draft SOPs

As the lab manager,
I want to see the draft SOPs
So I can work out how complete they are at the moment

we will also want a labelling system
and a sample check sheet / tracking sheet

@conorg150 made a start on thjis e.g https://sotonac.sharepoint.com/:x:/r/teams/Webbgroup/_layouts/15/Doc.aspx?sourcedoc={08F89516-105E-48EB-883F-B8CD4B48A4CB}&file=Sequencing_Project_Sample_Repository.xlsx&action=default&mobileredirect=true
@KirstyCooper

draft SOP's have been uploaded to Webb group teams site
https://sotonac.sharepoint.com/:w:/r/teams/Webbgroup/Shared Documents/Webb_group_resequencing_project_2022/Protocols.docx?d=w98bd230ae8824df68c550f6132aa7aa9&csf=1&web=1&e=oP85uF


Emoji Maker

Is your feature request related to a problem? Please describe.
Currently, our platform lacks a built-in emoji maker tool, limiting users' ability to create custom emojis for their communication needs. Users often resort to third-party applications or manual editing, which can be time-consuming and disrupt their workflow.
Describe the solution you'd like
Introduce a dedicated emoji maker tool within our platform, allowing users to easily create custom emojis using a variety of customization options such as shapes, colors, facial expressions, and accessories. This tool should provide a user-friendly interface and support exporting the created emojis in standard formats compatible with messaging platforms and social media.
Describe alternatives you've considered
One alternative solution could be to integrate with existing emoji creation platforms via API. However, this may limit customization options and require users to switch between applications. Another option is to provide pre-made emoji templates, but this may not fulfill users' desire for customization and personalization.
Additional context
Implementing an emoji maker tool will enhance the creativity and expressiveness of our platform, allowing users to personalize their communication with unique emojis tailored to their preferences. It will also differentiate our platform from competitors and attract users seeking versatile emoji creation capabilities.
What problem is this feature trying to solve?
This feature aims to address the need for a built-in emoji maker tool within our platform, enabling users to easily create custom emojis without relying on external applications or manual editing methods.
How do we know when the feature is complete?
The feature will be considered complete when the emoji maker tool is fully integrated into the platform, providing users with a wide range of customization options and seamless exporting capabilities. Additionally, gathering feedback from users and monitoring emoji creation metrics will help evaluate the effectiveness and completeness of the implemented feature.

@Sulagna-Dutta-Roy please assign this to me i am GSSOC'24 contributor with 2+ years of experience in development

@Shubham-Zone Raise another issue why are you asking for my issue


nmkup

A single binary to setup nmk on remote machine

setup entrypoint
download prebuild binary

close and move to #31


tilt: 0.22.4 -> 0.22.8

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/tilt-dev/tilt/releases.
meta.description for tilt is: "Local development tool to manage your developer instance when your team deploys to Kubernetes in production"
meta.homepage for tilt is: "https://tilt.dev/"
meta.changelog for tilt is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/8cwhpnr56lp5wphb94dzkfw9gz382dyk-tilt-0.22.8/bin/tilt passed the binary check.

1 of 1 passed binary check by having a zero exit code.

0 of 1 passed binary check by having the new version present in output.

found 0.22.8 with grep in /nix/store/8cwhpnr56lp5wphb94dzkfw9gz382dyk-tilt-0.22.8

found 0.22.8 in filename of file in /nix/store/8cwhpnr56lp5wphb94dzkfw9gz382dyk-tilt-0.22.8

directory tree listing: https://gist.github.com/5f43106927310b9f48fda52dcda2ba30

du listing: https://gist.github.com/7037f9c3428310a628c5b9d063031608

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

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
tilt

Instructions to test this update (click to expand)

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

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

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

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

1 package built:

tilt

Maintainer pings
cc @anton-dessiatov @kalbasit for testing.

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

1 package built:

tilt


USA Hyundai no longer receiving update

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/kia_uvo/blob/master/README.md
Region and Brand of car
USA Hyundai Ioniq 5
Version of the integration
2.22.0

Same here

As per issue template please provide debug logs.

As per issue template please provide debug logs.

Thank you for the fast reply. I deleted the whole entity and added again and it is working now. Thanks

I think I am seeing the same thing, although perhaps more nuanced.  ALL of the entities become unavailable every time home assistant is restarted.  The only way to restore them is to delete the integration and reinstall it (which works perfectly every time). In addition, every several hours to as many as several days, all of the entities related to charging become unavailable. The door and tire entities remain available, although I'm not sure if they are actually updating.  A sanitized log is attached.
home-assistant-hyundai.log

I'm using 2.23.

Same here, no updates and I have tried to remove the integration and readd it, without success.
home-assistant_kia_uvo_2024-04-02T07-26-07.379Z.log

Me too

OP is USA Hyundai.  If EU please open an issue for that.

Yep, me too. USA hyundai

Could we get debug logs from the latest version?

This seems to be the applicable error:
024-04-07 18:37:21.796 DEBUG (SyncWorker_53) [hyundai_kia_connect_api.HyundaiBlueLinkAPIUSA] hyundai_kia_connect_api - Get Vehicles Response

The request / response that are contrary to the Web firewall security policies have been blocked.

Based on that someone with this issue needs to sniff the traffic for the app and compare to the code to see how we differ.

I'm pretty sure I have the same problem, but I'm also rate limited at the moment, so I can't check as the logs just give me rate limit errors.
I'm in Australia


fix the bug that the stop method of ParticleSystem does not work

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Please send pull request to the dev branch.
Check CONTRIBUTING.md


try long_description and added empty requirements.txt for test

This change is

Comments from Reviewable

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

Comments from Reviewable


Squashed migrations; #39

Sorry for too large commit. :smile: There is still one open question:
How should we handle squashes with interrupted queue of migrations? That's we have a squash for migrations<PHONE_NUMBER>0000.js and<PHONE_NUMBER>0000.js but later someone publishes a migration<PHONE_NUMBER>0000.js. Currently, the squash cannot be applied at all because it was not clear to me if the squash should be run before that migration or vice versa.

omg so much code

I would totally appreciate a review from someone else. I'm still not entirely sure what to think about this functionality. @mickhansen @janmeier @durango @overlookmotel

Pinging @mickhansen @janmeier @durango @overlookmotel one more time :)

I don't use the migrations so i don't really have an opinion here.
What's the usecase for squashing migrations?

Sorry I've been slow to reply on this. Is there an issue which describes what this PR is trying to achieve? There's quite a lot of code to wade through and I'm not clear on what it's trying to do!
I haven't used migrations myself. I've wanted to, but every time I've looked at it, my thought has always been that surely there's a better way of doing this (like an intelligent diff between current database state and the models defined). So I'd be pleased to see anything that makes migrations a bit easier to use.

@overlookmotel #39. As described in that issue Django has a great implementation of squashed migrations. In addition, there are many no-Node.js enterprise orms/frameworks supporting this.
Lets say, we are developing a massive ERP system. Some of our customers are still using v1.0 while we are publishing v10.0.  It might be impossible to update the DB by the intelligent diff without loosing data. If we use regular migrations, it will take a year to run all the zillion of migrations. But if we have squashed these migrations already, they need to run only 9 squashes (= optimized versions of all migrations between major versions) (v1.0→v2.0→v3.0→v4.0→v5.0→v6.0→v7.0→v8.0→v9.0→v10.0). In case of you cannot understand the speed of squashes, figure out the speed of applying MySQL dump file. It is a real squash (in SQL level) from empty DB to the point when it was taken.

@sdepold It seems the other guys are not familiar enough with migrations to give their ±1 here. In addition, this is a big feature maybe too big to merge straight to master this way. Should we close this PR for now meanwhile I continue development in my fork until I consider it stable enough to be merged?

@jukkah Guess that's a good idea :) Feel free to re-open this PR when you feel like it :)


docs(config): add docs for external secrets

What this PR does

Adds documentation for external secrets in CDK config
Closes #3126

coverage: 93.864% (-0.005%) from 93.869% when pulling 3582c3aa7834fa3f5ce6f5ae34aa334b7a6ac0f7 on derrick-add-docs-external-secrets into a7a8dcf41e7f93b6f633f00823a5ee3da469fc54 on main.


Please describe the process of starting an agent from the same image

For now I've decided to have a quick hack running it in one container with server:
docker exec -it teamcity_server /opt/TeamCity/buildAgent/bin/agent.sh run

But this scheme breaks the Docker best practices to have one process per container.
Please consider an easy description of running agent in a separate container from the same image with a link.

Hi,
You can use the sjoerdmulder/teamcity-agent for that which also has
instructions in the readme
Op 1 dec. 2015 22:36 schreef "Aleksandr Vinokurov"<EMAIL_ADDRESS>
:

For now I've decided to have a quick hack running it in one container with
server:
docker exec -it teamcity_server /opt/TeamCity/buildAgent/bin/agent.sh run
But this scheme breaks the Docker best practices to have one process per
container.
Please consider an easy description of running agent in a separate
container from the same image with a link.
—
Reply to this email directly or view it on GitHub
https://github.com/sjoerdmulder/teamcity-docker/issues/6.


rename "remove-annotations" to "reset-annotations"

unimport-annotations may give a better idea of what it is doing


C# CP-SAT solver using doubles and floats

What language and solver does this apply to?
C#/CP-SAT,
Describe the problem you are trying to solve.
when creating models for CP sat most of my coefficients are doubles/decimals/floats and CP sat only allows long. if i convert the coefficient become less meaningful mainly for objectives i.e.
instead of
model.AddTermToObjective(variable, 30.55); i am forced to use
model.AddTermToObjective(variable, Convert.ToInt64(30.55)); this will convert 30.55 to 31 and distorts the results  another example would be
LinearExpr lhs  = variable* 122.33 i am forced to used the convert to long
LinearExpr lhs  = variable* Convert.ToInt64(122.33) which would be variable * 122 and does not take into account the decimal
Describe the solution you'd like
to include types of doubles/decimals or floats to that we can write expressions like
LinearExpr lhs  = variable* 122.33
i know Gurobi allows the decimals
when i test with Gurobi vs Or Tools creating a lineup solution the first few results are the same but then they start to differ
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.

Gurobi is a different kind of solver.
With a CP solver you often convert decimals to integers by multiplying with
the precision you want instead.
Ie, of you need 30.55 instead of 31. Just scale everything relevant by a
factor of 100. So you have a long 3055 instead
On Tue, Jun 2, 2020, 15:03 therollingbird<EMAIL_ADDRESS>wrote:

What language and solver does this apply to?
C#/CP-SAT,
Describe the problem you are trying to solve.
when creating models for CP sat most of my coefficients are
doubles/decimals/floats and CP sat only allows long. if i convert the
coefficient become less meaningful mainly for objectives i.e.
instead of
model.AddTermToObjective(variable, 30.55); i am forced to use
model.AddTermToObjective(variable, Convert.ToInt64(30.55)); this will
convert 30.55 to 31 and distorts the results another example would be
LinearExpr lhs = variable* 122.33 i am forced to used the convert to long
LinearExpr lhs = variable* Convert.ToInt64(122.33) which would be variable

122 and does not take into account the decimal

Describe the solution you'd like
to include types of doubles/decimals or floats to that we can write
expressions like
LinearExpr lhs = variable* 122.33
i know Gurobi allows the decimals
when i test with Gurobi vs Or Tools creating a lineup solution the first
few results are the same but then they start to differ
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2050, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXL5ET2YZ3C65AVMSTONZLRUT2BNANCNFSM4NQWTTYA
.

CP-SAT supports objective scaling. Unfortunately not in C# :-(
So multiply all your coefficients by 1000 before rounding. And divide the
objective value by 1000 when using it.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le mar. 2 juin 2020 à 18:04, CervEdin<EMAIL_ADDRESS>a écrit :

Gurobi is a different kind of solver.
With a CP solver you often convert decimals to integers by multiplying with
the precision you want instead.
Ie, of you need 30.55 instead of 31. Just scale everything relevant by a
factor of 100. So you have a long 3055 instead
On Tue, Jun 2, 2020, 15:03 therollingbird<EMAIL_ADDRESS>wrote:

What language and solver does this apply to?
C#/CP-SAT,
Describe the problem you are trying to solve.
when creating models for CP sat most of my coefficients are
doubles/decimals/floats and CP sat only allows long. if i convert the
coefficient become less meaningful mainly for objectives i.e.
instead of
model.AddTermToObjective(variable, 30.55); i am forced to use
model.AddTermToObjective(variable, Convert.ToInt64(30.55)); this will
convert 30.55 to 31 and distorts the results another example would be
LinearExpr lhs = variable* 122.33 i am forced to used the convert to long
LinearExpr lhs = variable* Convert.ToInt64(122.33) which would be
variable

122 and does not take into account the decimal

Describe the solution you'd like
to include types of doubles/decimals or floats to that we can write
expressions like
LinearExpr lhs = variable* 122.33
i know Gurobi allows the decimals
when i test with Gurobi vs Or Tools creating a lineup solution the first
few results are the same but then they start to differ
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2050, or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAXL5ET2YZ3C65AVMSTONZLRUT2BNANCNFSM4NQWTTYA
.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2050#issuecomment-637648660,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3KETJTH2YSFGQNOFXDRUUPIBANCNFSM4NQWTTYA
.

@lperron and @CervEdin thank you for pointing me to the right directions i just implemented a utilities code to do that  and ran the tests again the 20 tests i ran the results are now similar to Gurobi results for both optimal and feasible solutions the code is below if there is a better way of doing this let me know and hope this helps others
//https://github.com/google/or-tools/issues/2050
public long ScaleToLong(double number)
{
double n = number;
n = n * 1000;
long l = Convert.ToInt64(n);
return l;
}
    public double ScaleToDouble(int roundBy, long number)
    {
        double n = number;
        n = n / 1000;
        return Math.Round(n, roundBy);
    }


feat(plugin,show,hide): support configurable hide-style

I've added support for a configurable hide-style. We wanted this feature in support of the CSP configuration we are using which doesn't allow for inline-style elements. This was originally mentioned in this issue : aurelia/framework#54

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Changed the title to WIP:. Need to fix at least the package.json and package-lock.json and see why the ci build is failing.

Hmm I'm not sure why @babel/polyfills is needed here. This repo is no longer using babel 🤔


Question: Isn't putting forms into the Store considered as a bad practice?

Quote from Brandon Roberts & Mike Ryan
"What doesn't belong to the 'Store' ?" "Forms!"
from this talk during ng-conf 2018
Reducing the Boilerplate with NgRx - Brandon Roberts & Mike Ryan
https://youtu.be/t3jx0EC-Y3c?t=702

I am familiar with their opinion, but I disagree. There are a lot of reasons why you may want to put your forms into the store, e.g. for better debuggability (unfortunately @angular/forms is a mutable mess that is really difficult to debug and get right for complex forms), for time travel debugging, for decoupling the lifetime of the form state from the lifetime of the component etc.
That said, for some time now ngrx-forms also has support for local form states which allows you to use the functional nature (and resulting benefits) also outside of the store.
But yeah, that is the beauty of open source. Some people may find it useful to put from in the store, others not. For this that do, this library exists. In the project this library originated in I would have gone crazy without it, but even now I tell the devs to not use ngrx-forms everywhere, but only where it's capabilities make sense.

Closing the issue since the question was answered.


Add: Discord.js Docs extension.

Description
New extension to search the Discord.js documentation from raycast.
Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hi @pernielsentikaer I believe it was a logic error, I think I was passing null as a value for the doc branch. Hopefully should be fixed now! Please feel free to ask if you have any other problems.


Support Python 3.8 (as does TF 2.2)

Describe the bug
Since TensorFlow 2.2 will support Python 3.8 (https://github.com/tensorflow/tensorflow/issues/33374#issuecomment-599102810), I feel that tensorflow_addons should do the same, especially in the light of https://github.com/tensorflow/addons/issues/1320.

Our codebase is already compatible with python 3.8. So we don't need to do anything (if you take https://github.com/tensorflow/addons/blob/master/tools/docker/cpu_tests.Dockerfile and change the python version to 3.8, you'll see the tests are passing). Maybe what you're referring to is to have a wheel on pypi that supports python 3.8. We'll do that once we release the wheels on pypi with support to TF 2.2.0, currently we only target stable versions of tensorflow. Our release should be around the same time that TF2.2.0 is stable. So you can track #1320.
If you really really can't wait, and that you don't use custom cuda ops (compiled ops) of TF addons, you can install

python 3.8
TF2.2.0rc1
pip install git+https://github.com/tensorflow/addons.git

and that should be enough.
If you want to use custom ops, you'll have to compile them yourself, you can use the https://github.com/tensorflow/addons/blob/master/CONTRIBUTING.md to get started.
I'll be closing this issue since it's already on our roadmap. You can track the progress in #1320 , and maybe help you wish to :)

Thanks, that was super helpful to get it up and running for testing.

@gabrieldemarmiesse #130 was closed on March 27:

We're now compatible with TF 2.2.

And while tfa-nightly has PyPI packages for 3.8 (https://pypi.org/project/tfa-nightly/#files), tensorflow-addons still doesn't despite an April 10 release (https://pypi.org/project/tensorflow-addons/#files). What else should I track to follow stable Python 3.8 support via PyPI?

We plan for a new release tomorrow :)

@bersbersbers 0.10 has been published with python3.8 wheels available.


Cannot find "/workspaces/clyderos2/build/compile_commands.json"

Missing compile commands file from template repository.

Removed reference in c_cpp_properties.json


Find data on Governor Candidates

Get campaign finance (and general) information on:

Gavin Newsom
John H Cox

Things to base your research off of:
https://www.opendisclosure.io

Assigned to me

Vision:
Ideally, we would like to find a general API we could use to pull campaign finance and general candidate information for any candidate.
However, given the fast approaching November 2018 election, we might have to hard code the data this run around.
If we have to hardcode all the data, we can go back to make the data consumption more automated and scalable.
I got the list of candidates from this link:
https://elections.cdn.sos.ca.gov/statewide-elections/2018-general/contact-list.pdf

@willdiep
How's it going thus far?

Have all the resources we need via Vote Smart:
https://votesmart.org/candidate/campaign-finance/70386/gavin-newsom
https://votesmart.org/candidate/campaign-finance/179444/john-cox
I just registered for the API key and am waiting for their approval:
q
I will report back with the API key once approved.

Awesome! Great work (:
If the API looks good will you post an example HTTP request and HTTP response?

@willdiep I sent you a Github Collaborator invitation. Once you accept, I can officially assign issues to you. (:

Thanks! Got it! I'll push my branch over.


Discussion/Enhancement: Why does a child class need to implement the same exact typed method signature as the parent?

I've been playing around overloading Phalcon\Config::merge and I ran into this at runtime.
PHP Warning:  Declaration of Project\Application\Config::merge(ArrayAccess $config): Project\Application\Config should be compatible with Phalcon\Config::merge(Phalcon\Config $config) in Unknown on line 0

Is this a necessity?  This really limits the inheritance capabilities within Zephir.  I don't think that it should function this way unless some special modifier has been assigned to a method.
If you agree that it shouldn't be this way then I can relabel this as "Relaxation of method signature for types" or something like that.  I'm just not sure if there is a thoughtful reason why it is the way that it is, but regardless it seems to really get in my way and I feel like that I'm imprisoned between interfaces and method signatures.

Also I'll add that lets face it, a warning is basically a full on error in this case.  Nobody is going to put something into production that spews warnings into the logs.  A warning in this case is effectively as prohibiting as a full on halt error.

If you look closer at the error message, you'll see that it's coming from PHP, not Zephir itself. This is a restriction that PHP places on things. We can't relax it or remove it.
That said, are you running a custom compile of Phalcon built with Zephir 0.11.x? Because that's unsupported entirely - Phalcon should always be built with Zephir 0.10.x.

That said, are you running a custom compile of Phalcon built with Zephir 0.11.x? Because that's unsupported entirely - Phalcon should always be built with Zephir 0.10.x.

If that is the case then it really should be written out in a more obvious way.  I can't say that is not written out somewhere but I've never seen it.
However, my Phalcon is coming from the Ubuntu package and my extension is currently built with 0.11.6.
Perhaps the merge method could be relaxed to var config and then it could attempt to case an object to array or just to expand it to also accepting an array.
    return $config
        ->merge(new Config([
            'paths' => [
                'otherDir'
            ]
        ]));

could become the following in user code:
    return $config
        ->merge([
            'paths' => [
                'otherDir'
            ]
        ]);

That's something to bring up in the Phalcon repo.

  I just assumed.  That is about 99% why I removed myself from that list.  I found it to be a totally pointless designation without significance.


Update Provisioner Docs Example

The spec.limits.resources.cpu field should be a string, not an int.
1. Issue, if available:
An example in the docs is incorrect
2. Description of changes:
Updated example to be correct
3. How was this change tested?
N/A
4. Does this change impact docs?

[x] Yes, PR includes docs updates
[ ] Yes, issue opened: link to issue
[ ] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Did you experience an error with that yaml?  I just applied it to my cluster and it worked for me:
$ cat <<EOF | kubectl apply -f -
apiVersion: karpenter.sh/v1alpha5
kind: Provisioner
metadata:
  name: test-1
spec:
  limits:
    resources:
      cpu: 1000
      memory: 1000Gi
  requirements:
....

$ k get provisioner test-1 -o yaml
apiVersion: karpenter.sh/v1alpha5
kind: Provisioner
metadata:
  ...
  name: test-1
spec:
  kubeletConfiguration: {}
  limits:
    resources:
      cpu: 1k
      memory: 1000Gi```

I believe quotes are only required if the field is a string and the input is a number. In that case, you'd need to use quotes to tell yaml that you're actually passing a string rather than a number.
https://github.com/aws/karpenter/blob/main/charts/karpenter/crds/karpenter.sh_provisioners.yaml#L65-L67

@bwagner5 @ellistarn The kube API seems to return a string regardless of the type submitted to the API server, based on my Very Scientific Testing on my 1.20.11 EKS cluster.
Applying a provisioner that uses integer limits via ArgoCD will cause ArgoCD to always mark the resource as Out of Sync.

Thank you!


Can basePath be a standard of rdl format?

HI, we are using rdl as our framework implementation.
Some users want the feature of basePath to be a part of rdl, so they can set path for each rdl file.
We know there are parameter "-b" in the generator of client & server, but it is not enough for us.
Can basePath be a field in generated json file?
We want it to be like what swagger supported. http://swagger.io/specification/
It will do us a big favor.
Thank you.

This feature be probably be added (are you asking specifically for it to be called "basePath"? I'd prefer no mixed case keywords in RDL). It has to work in a predictable way across included files, also (i.e. a file with a base path includes another file with another base path), have you thought of how that should be handled?

We surveyed the current behavior of rdl. It will ignore "name" or "version" tags in included files, even when these tags are missing in the child rdl file. We thought It is also a proper way to handle "basePath" tag. Just ignore the key in included files.
For the first question, the keyword "bashPath" can be changed. Use another keyword to prevent a confusion is fine for us.
Thank you for the help.

Fixed in commit b436a6cc54ca503c02c7af89dc32e53959cb06b9.
Added the "base" option. Usage is:
...
name something;
version 2;
base "/some/path";
...
If no base is specified, a default base is generated as before.
The swagger generator now includes this (the -b option overrides the schema base), and the new swagger importer preserves it.

Thanks for your kindly help.
We'll waiting for it in 1.4.12 release.


fix: wallet buttons overflow

This PR fixes styles on mobile when 5 buttons are rendered on the wallet dashboard and adds a shadow to indicate that the content can be horizontally scrolled

Works well but for some reason I don't see any shadow indicating scrollable section. I'm using iPhone with Safari.

Closing in favor of preferred solution in #2670


Conformance report for reference

https://github.com/miloyip/nativejson-benchmark/blob/master/sample/conformance_JeayeSON (C%2B%2B14).md

Thanks! As far as the invalid JSON being treated as valid goes, as the README mentions, JeayeSON expects valid JSON all of the time and expects those consuming its API to employ facilities to validate untrusted JSON.
The lack of big number support is certainly a concern though; it'd be good to get that in.


module 'probablepeople' has not attribute 'TAGGER'

I'm trying to label examples with the following command
parserator label name_data/unlabeled/professors.csv name_data/labeled/profs.xml probablepeople
Which gives me the following error:
/home/*****/builds/probablepeople/probablepeople/__init__.py:66: UserWarning: You must train the model (parserator train [traindata] [modulename]) to create the company_learned_settings.crfsuite file before you can use the parse and tag methods
warnings.warn('You must train the model (parserator train [traindata] [modulename]) to create the %s file before you can use the parse and tag methods' % MODEL_FILES[model_type])
/home/*****/builds/probablepeople/probablepeople/__init__.py:66: UserWarning: You must train the model (parserator train [traindata] [modulename]) to create the person_learned_settings.crfsuite file before you can use the parse and tag methods
warnings.warn('You must train the model (parserator train [traindata] [modulename]) to create the %s file before you can use the parse and tag methods' % MODEL_FILES[model_type])
Traceback (most recent call last):
File "/home/*****/PyEnvs/BaseLab/bin/parserator", line 11, in <module>     sys.exit(dispatch())
File "/home/*****/PyEnvs/BaseLab/lib/python3.5/site-packages/parserator/main.py", line 54, in dispatch     args.func(args)
File "/home/*****/PyEnvs/BaseLab/lib/python3.5/site-packages/parserator/main.py", line 75, in label     manual_labeling.label(module, infile_path, outfile_path)
File "/home/*****/PyEnvs/BaseLab/lib/python3.5/site-packages/parserator/manual_labeling.py", line 211, in label
if module.TAGGER:
AttributeError: module 'probablepeople' has no attribute 'TAGGER'
I have already trained the person and the company file using the code provided in the README, as well.
I'm using ProbablePeople as pulled from the repo
and
Parserator == 0.6.0
I've tried with Python 3.5.2 Python 2.7.12| I also tried downgrading Parserator to 0.4.1; no luck.
Any help would be super appreciated. Thank you!

Maybe a second issue, `python setup.py develop' is requiring sudo when I'm in a virtualenv??

ah, this is a bug that was introduced w/ some recent changes to probablepeople, thanks for reporting. if you use probablepeople at this commit, it should work.

And about the AttributeError: module 'probablepeople' has no attribute 'TAGGER' - I'm still getting that error?


doc: init lib.generators reference documentation

Description of changes

Add generated documentation for lib/generators.nix
Reformat the returned attribute set such that unsfafeGetAttrPos find the right source positions.
Migrate all comments to use doc-comment format.
Documentation of many undocumented functions.

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

ping @DanielSidhion


Github username change issue

@harmanlearns commented on Sat Aug 13 2016
Expected vs. Actual
What were you attempting to do? What actually happened?
I changed my github username to match my email and website. It caused echo to have issues in terms of private groups and having the same permissions as a user in channels.
I can not see any of the previous private channels and no more gear icon next to a post in certain channels.
Steps to Reproduce
How can you reproduce the bug? Include as much detail as you can.
-Change github username
-try to use echo again in same channels as previous username
Environment and Versions
What versions of relevant external software were you using (browser, OS, etc.)?
Chrome on Mac.

@jeffreywescott commented on Mon Aug 15 2016
Thanks for reporting this, @harmanlearns. Is this blocking you from being able to work / collaborate (trying to prioritize)?

@harmanlearns commented on Mon Aug 15 2016
@Jeffrey: This is not blocking me from working right now. I can send and receive messages.
This can be fixed  when there is time available. I mainly cannot:
-react to messages
-edit messages after sending on some channels
-access private channels
Thanks!

On Aug 15, 2016, at 4:55 AM, Jeffrey Wescott<EMAIL_ADDRESS>wrote:
Thanks for reporting this, @harmanlearns. Is this blocking you from being able to work / collaborate (trying to prioritize)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@jeffreywescott commented on Mon Aug 15 2016
Related: https://github.com/RocketChat/Rocket.Chat/issues/3545

afaict we need to do this when the username changes:
RocketChat.callbacks.run('usernameSet')

(see packages/rocketchat-ui-login/username/username.coffee)

Cool. R U gonna give it a try in dev to see if it works? We probably need an updateUsernameIfChanged function in server/sso.js ...

@jeffreywescott: Working on it, just making notes here as I dig around.

Looks like this is where the magic happens: packages/rocketchat-lib/server/functions/setUsername.coffee

This code fix still leaves @harmanlearns' data messed up, so I created a chore to get that fixed: #61


Info on parse failure

I'm running ParseArgumentsStrict and when it fails my program immediate exits, displaying the syntax but gives me no clue as to why it failed.  where do I look?

@coyot, from months everything is update. Check it out!
@ekkis, when parsing fails you got a NotParsed<T> instead of Parsed<T>.
It' documented here: https://github.com/gsscoder/commandline/wiki/Latest-Version.
Thanks to both for using the library.


repeat of  #447 (Category header still incorrect)

Issues
This is a repeat of  #447 milestone .15-3 which was closed, however, it still or has gone back to the wrong title:

The correct should be "category" or "Category."
v22.0 local

Fixed


Finalize physics exporting

Needs to happen before we move on to the rest of JMSv2. Everything is technically right at the moment but the object doesn't look correct in the scene when it has a parent node. Need to fix this so it both looks proper and gives the right location in the JMS file.

Fixed in 29c482c95ee3e953238908addde8035c5d99e6d4


Complete list of Isotopes

Is your feature request related to a problem? Please describe.
Many elements are not populated with their Isotopes, and some important information (such as half-life) is missing too.
For example, Scandium has 35 isotopes https://en.wikipedia.org/wiki/Isotopes_of_scandium, but none is present in the database.
Describe the solution you'd like
Update the database with trusted fonts.
Describe alternatives you've considered
Is it ok to submit a pull request with an updated database on Isotopes?
Additional context
Keep on with the good work with the mendeleev library! Thanks

@guilindner thanks for taking the time and reporting the issue :clap:
You are absolutely right that the current data does not contain all the isotopes. If you are curious, check out the source for isotope data you'll basically find that I took the available data from IUPAC CIAAW that only reports the naturally occurring isotopes.
Following your example of Scandium, the data source reports only one isotope Sc 45 and if you check mendeleev has exactly that:
from mendeleev import Sc
Sc.isotopes
[<Isotope(Z=21, A=45, mass=44.955908, abundance=1.0)>]

I would be more than happy to accept and even help out on a PR to include all the other radioisotopes if there is a suitable data source.
Let me know if you need any help

Hi @lmmentel,
I got a reliable databse from The Lund/LBNL Nuclear Data http://nucleardata.nuclear.lu.se/, and added the missing mass information from the National Institute of Standards and Technology (NIST) https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl?ele=&isotype=all.
It's more of a proof of concept, I have prepared some scripts to fetch their data.
Can you check if it fits the mendeleev standards? If you have any suggestions I can prepare a better suited pull request.
Thanks in advance

That was really quick :smiley: The data source looks quite solids but if I'm reading it right it's 20 years old. That however should not be an issue given that it's quite accessible. Switching the discussion over to the PR #20  so we can discuss more technical aspects.

Hey @guilindner any progress on the PR?

Hi,
I had to do some chances and I still don't know whats the best way to implement it. I will need to find a source and probably create a new table for the Emitted Gamma Ray Energy (one isotope can emit more than one energy) and link it with the isotopes table.
But I think you can close this Issue until a proper version is ready. Meanwhile I'm using a workaround for my project.

FYI @guilindner I had some time and got inspiration from efforts on the julia side, especially this repo from @Gregstrq and submitted a PR #74. It should address this issue so have a look at the PR if you have a second. I still need to update the docs, but that shouldn't take too long hopefully.


Fixed to use apierror.APIError instead of spanner.Error

Dear Developers.
I noticed that Yo is using DEPRECATED spanner.Error.
So I have modified it to use APIError.APIError, as exemplified in the spanner package.
ref. https://pkg.go.dev/cloud.google.com/go/spanner#Error
I also re-created various templates with the modified contents in the Docker image environment specified in .circleci/config.yml.
This is my first contribution to Yo. So I apologize if I skipped any necessary steps.
Thank you in advance for your review.

Sorry for the late reply and thank you for the contribution. I didn't notice the spanner.Error's code will be deprecated.
The spanner library depends on spanner.Error type before so I wrapped an error inside yo by spanner.Error. The spanner.Error's Code is deprecated in favor of spanner.ErrCode(). It means the code is retrieved from error by status.FromError() as the common way for gRPC.
However some functions in the library such as ErrDesc() or extractResourceType() depend on spanner.Error type. I'm not confident we can use other error type than spanner.Error. I think it's okay but please let me think for a while.
btw if we can use other error type, I think we don't need to apierror.APIError. We can just implement an interface for status.FromError() for an error. Is there a reason or a library that uses apierror.APIError instead of spanner.Error?

Is there a reason or a library that uses apierror.APIError instead of spanner.Error?

Ah ignore me. I read the comment in spanner.Error.

Thanks for getting back to me!
I noticed the deprecation of spanner.Error when a file output by Yo failed the latest staticcheck check. So, not being familiar with the background of this, I looked into the discussion and found that it was fixed in the following pull request.
refactor(spanner): return APIError as wrapped error in spanner.Error struct
In the review comments in the above PR, I found the following statement.

This example code will work both when the client returns instances of spanner.Error and when it starts to return apierror.APIError instances.

It may be difficult to determine from this information alone, but I hope it is helpful.
Thank you for your continued review.

sorry for so late again. I checked the implementations.
I have a concern in the proposed implementation. if a user of Yo uses old spanner library that hasn't introduced apierrors.Error, it makes an unexpected behavior. apierrors.Error was introduced since cloud.google.com/go/spanner v1.28.0. It is about 4 months ago.  So the issue may not happen.
I leave a comment but LGTM.

Thanks for your review and comments! I have removed the unnecessary Unwrap implementation that you pointed out in your review.
I apologize for the inconvenience and I would be happy to review it again. Thank you so much.

Thank you for your contribution!

@kazegusuri
I believe the fixes merged in this PR are not yet included in the release, is there anything additional I should do to have them included in the release?
(I am not used to contributing to OSS and apologize if I have omitted any work...)
If a release is planned, I would appreciate it if you could let me know when it will be available.
Thank you for your cooperation!

@yukia3e sorry. :pray:  I just released a new version.
https://github.com/cloudspannerecosystem/yo/releases/tag/v0.5.3

Thank you, I'm glad I could contribute to yo!


Version 2.0.0 is not installable by elm-package

I can't install version 2.0.0 using elm-package. Could be that this version is not published. If not, why so? Are there plans to do it?

Is this waiting for Elm 0.16 to come out?

Project is deprecated in favor of https://github.com/laszlopandy/elm-console


Gradient import appears to corrupt style when angled

We have quite a few gradients that we have converted to single property colors (due to #152).
However, once we do Import Styles from Figma Tokens, the gradients are corrupted.
To give an example:

We create a box (300x300)
Create a gradient start #009677, stop #50B848 (opacity 100%), and angle the gradient bottom left corner to the top right corner.
Create style based on that gradient

At this point, Figma has:
background: linear-gradient(45deg, #009677 0%, #50B848 100%);

Now, perform Import Style into Figma Tokens - the Figma sheet changes to:
background: linear-gradient(45deg, #009677 -20.42%, #50B848 50%);

There is now a -20.42% that has arrived from Figma Tokens.
If I look at the Figma Token that has been saved:
"Gradient issue": {
    "value": "linear-gradient(315deg, #009677 0%, #50b848 100%)"
  }

So it would seem that the issue is that there is some interpretation going on that changes the angle. We have also noticed that the floating point math is a little out compared Figma as well.  This is also not reproducible with those numbers.
The input of:
background: linear-gradient(45deg, #009677 0%, #50B848 100%);

at one point produced:
background: linear-gradient(45deg, #009677 -20.42%, #50B848 50%);

What we observe is that the -20.42% is a common occurrence, whereas the 50% change is less.
We have noticed that even updating manually the token, to:
"Gradient issue": {
      "value": "linear-gradient(45deg, #009677 0%, #50B848 100%)"
    }

causes the gradient to be corrupted as well:
background: linear-gradient(135deg, #009677 0%, #50B848 70.42%);

Is this a known issue?

So I have done some digging around. From what I can make out the idea in the code is that the gradient angle degree is related to Figma's transformation matrix. As far as I can tell, with just the CSS values, you can't really backwards engineer the transformation because the (x,y) co-ordinates are related to the deg but not governed by the deg of the gradient..
For examples - 45deg could apply across any amount of transformations, but the angle of the gradient is still 45deg.
Hence, I'm not sure you could just use the css to get back to the Figma transformation. Is the goal?
To further illustrate, if you create a gradient from top-left corner to bottom-left corner of a 300x300 rectangle, Figma generates:
background: linear-gradient(360deg, #009677 0%, #50B848 100%);

Moving that to top-right to bottom-right, Figma generates:
background: linear-gradient(360deg, #009677 0%, #50B848 100%);

So identical css...
But the transform matrix is different - case 1:
"gradientTransform": [
 [ -8.940696716308594e-8, -1, 1 ],
 [ 0.5394624471664429, -1.6653345369377348e-16, 0.5 ]
]

Case 2:
"gradientTransform": [
 [ -1.295973248716109e-7, -1, 1.0000001192092896 ],
 [ 0.5394624471664429, -2.1681188400179963e-8, -0.03946239873766899 ]
]

So there are two different transform matrixes but the same css.
I can fix the gradient creation such that the correct angle is generated, but in the current structure for the JSON, if you wanted to give the same transform back, there would need to be some storage of extra info.
What do you think?

Thanks for this detailed report! I'm aware gradients are currently not 100% correct, especially with the case you mentioned as Figma allows users to set these transformations in a very specific manner. I think what would be ideal is if we could mimic CSS behaviour, and lose some of Figma's capability along the way. Storing some of these transforms as metaData sounds good, but I think for now we should focus on fixing the correct angle.
When I was working on the gradientTransforms I was kind of struggling with understanding how Figma handles these transformations to be honest, so your help would be greatly appreciated! As I'm primarily a Designer this is a little out of my league 😅
Development is currently based on the next branch, where a larger refactoring has been made. If you need any help to get it set up, I'd be able to jump on a quick video call if you'd like that.

Yeah, I've got some time to work on this 😄
I'm in the opposite boat, this is the first time I'm working with designers - server developer by trade - but I a designer team that have invested into the plugin as it integrates quite well into our environment and helps designers sync with the dev team. I think this is a great bit of tooling that can go far.
I'll see about a putting a PR together on the next branch. I haven't tried getting this into Figma just yet, but played with the tests 👍

Oh, I forgot to mention - I started to use this library:
https://github.com/rafaelcaricio/gradient-parser
In some OSS projects they want to limit external libraries.
Are you happy with including other packages?

Oh, I forgot to mention - I started to use this library:
https://github.com/rafaelcaricio/gradient-parser
In some OSS projects they want to limit external libraries.
Are you happy with including other packages?

Sure, I have no objections on using external libraries, feel free to do so!
Let me know if you need any help on setting it up in Figma, the readme has some info on how to add the development plugin to Figma itself.

So after hitting my head for the last two days, I'm only a little closer to understanding what Figma is doing.
I can work out the gradient angle fine through so matrix manipulation, but the stop points are a complete mystery to me. I can work out the stop points when the angles are well known - like 90, 45, etc. - so it has some relation to the sin/cos calculations. Once the gradient line doesn't go through the center point, I have no idea what Figma is giving back and how to make it work.
For now I'm going to park this.
I've push this up to my github fork on branch issue-156 if you want to have a look. Its rough, but the angle should be ok...real hacky code though.
I'll see if I have some brain spark later this week to see what could be happening with the stop points.

Fixed in version 77! 🎉


[Feat] Token introspection endpoint

Here
https://github.com/peppelinux/spid-cie-oidc-django/blob/provider/spid_cie_oidc/provider/views.py#L779

Token introspection endpoint and test


Broken 'documentation' link.

The 'documentation' link on the home page (readme.md) of the project is broken.

Thanks for the feedback, I think that this PR should help https://github.com/quarkiverse/quarkiverse-docs/pull/88


SVG folder of tensorboard not found

if you run the mnist_fully_connected tutorial and inspect it with tensorboard afterwards, you find the following:
the graph-viz is calling this url for a image
http://localhost:6006/lib/svg/summary-icon.svg

which is not there...

This file was removed in commit f7918e1dcd5b0c1f8114f488fc35a63a81e94535, so it's possible that you have a version conflict. (It sounds like you have an old version of some of the TensorBoard assets.) Can you try upgrading to TensorFlow 0.6.0 and see if this solves the problem?

i built it from source and it happened... checked your @mrry suggestion and it fixed it..
just a quick reminder to keep everything in sync (at least try to) in the source as well :)


cleanup: remove vestiges of CMK_AIX / CMK_USE_GM / CMK_USE_MX

AIX / Myrinet support

Given that its been so long since a Myrinet machine was on the TOP500 that dropped myrinet from the pull down list, I think we can drop Myrinet.
However, AIX still exists. IBM released a new version last year. Regardless, the two things should not be compounded in one PR. Also, each of their removals should be preceded by a deprecation warning in CHANGES.

As far as I can tell, AIX support was removed in 2016 (39643aa4e780e1ffdfc4e60cd511496c6a41ce01), and Myrinet in 2017 (102a60c8f052af25974d073bfefda946395cccce). This patch is only meant to remove the now (apparently) unused CMK_* #ifdefs that were missed in the previous removals.


Pagination doesn't seem to be working

HI,
I'm trying to get more than 20 items while using searchMedia() so the function pagination() was supposed to answer to my needs. However, it doesn't seem to be working even when using the snippet provided in the readme.
ErrorException in Instagram.php line 383: Undefined property: stdClass::$pagination
Did I miss something?
Thanks in advance.

searchMedia() doesn't support pagination. Please see the returned JSON. There is no "pagination"-property.
See also stackoverflow. Sorry,

Thank you for the answer.


feat: declarative instrumentation

https://declarative-instrumentation--business-website--adobe.hlx3.page/blog/insights/improving-the-customer-experience-cios-look-beyond-business-technology-to-privacy

Couldn't we create a post-martech.js script that is called as callback of loadMartech ? The setDigitalData will grow (check https://github.com/adobe/spark-website/blob/main/express/scripts/instrument.js#L50-L381, 330 lines of digitalData._set(...)) which will slowly increase the size of script.js.

Hey @kptdobe,
The helix ccx implementation (spark website) was kind of a strange case.  There were reasons for why it bloated that I don't think business website suffers from. A few I can think of off the top of my head:

There were really 2 separate implementations that we had to merge together into one (the adobe.com specification and the spark specification)
The spark specification had a lot of custom dimension requirements simply to keep parity with their previous implementation.
There were a lot of features, capabilities, widgets, CTAs, etc. in the CCX helix pages that required a more complex set of rules for setting data in the data layer.
Finally, there wasn't a lot of time to design and there wasn't a focus on code optimization/minimization at the time and it was more important to get it out the door than design it well...

In the case of business blogs, most of these things do not exist.  Hopefully that at least gives some context and history behind the reasons for bloat in digitalData.  I like David's approach because it tries to avoid inserting that directly in the code and thus avoiding the bloat.

@davidnuescheler, first I have to say that I really love this idea.  This is a really great implementation and I approve of the concept.  Thanks for putting it together.
A couple of concerns:

If we do this, it delays the loading of main.min.js, which also delays the hiding/unhiding of the body (FCP, LCP, SPI all are affected by the body hiding).  This is probably my biggest concern.
(minor) When we want to expand this to things other than <meta> tags, we will have to modify the implementation a bit.  Are we certain all the data we will want will be in meta tags?
(minor) I didn't see any implementations of the event tracking tab, but my concern mainly revolves around this json file being loaded on EVERY page, but only on some pages will the links be relevant.  This incurs the network cost on every page where it may not be used or needed.

Possible solutions:

Is there any way to embed the content of instrument.json in the HTML content itself to avoid the extra network time?  Do you have any precedent or patterns for this sort of thing?
A page specific json file? (instrument.blog.json, instrument.improving-the-customer-experience-cios-look-beyond-business-technology-to-privacy.json, etc.)

@bbythewa i changed the implementation which should address (1), as we are no longer waiting. there is some tracking in there to see how "unlikely" the loss of information is, see the unknown: categories...
as for (2), you are absolutely correct, once we get other usecases for things that need to go into digital data we should probably extend the sheet. i think the implementation is somewhat obvious as we probably would use a query selector (+ possibly some additional selection of attributes and transformations) but i would like to learn what those usecases are and keep it simple for now.
for (3), i think there are two concerns
(a) that there is an overhead with loading the instrumentation.json at all, and
(b) that there may be extra information about certain mappings that are not needed for this particular page in there.
first let me state that i think the overhead of (a) and (b) is negligible considering that we are outside of the critical path and i don't think that the payload should ever get bigger than a couple of kb (it is 405b with our admittedly very simple configuration).
the benefit of keeping this as separate resource that can be cached by the browser (vs. being inlined), should also have a positive overall network impact, and simplify things for the entire caching chain (CDN, proxies, etc.) and as for (b) i think in pure JS implementation the entire set of instrumentation logic is also transmitted, and at least from a network footprint, the JSON mapping should be smaller.
let me know what you think...

@davidnuescheler, I like the changes you have made and also agree with your assessment.  I approve.


'demo.cleanstone.rocks' test server offline/not reachable

(I actually type way faster, but the mp4 to gif conversion removed a lot of frames, in case you're wondering lolz)
(https://streamable.com/lzoeh)

Yeah the server is currently offline

Any ETA until the server will be up and running?

It should be back online now... The Webadmin is available too

Just tried that. Still offline.

Try with port 25566 also I just changed the DNS...

demo.cleanstone.rocks:25566 not working. Will try again in a hour.

ah found it... there was a port forwarding error... should work now

Server is up and reachable again. Thank you very much!


Bulk Entries Refactor and Adjustments

Description

Given the incoming design iterations for Bulk Entries on #244, it would be best to prepare to adjust the BulkEntryController where needed.
This issue only needs to be completed circumstantially. If Design / Front-end require a overhaul.
Possible Implementation

Out of scope

N/a
Requirements / Restrictions

N/a

Please add your planning poker estimate with ZenHub @IanjhPhillips


chore: update containerd cri path

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

If this PR will release a new chart version please make sure to also uncomment the following line:

/kind chart-release

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area falco-chart

/area falco-exporter-chart

/area falcosidekick-chart

/area event-generator-chart

/area k8s-metacollector

What this PR does / why we need it:
I noticed in the helm chart that the containerd.sock is mounted from the host, specified by whatever value is passed it, to /home/run/containerd/containerd.sock but then the cli flags for within the pod template spec are looking in /run/containerd/containerd.sock which isn't where it gets mounted.
Example below (my containers are called monitor because that's what I pass into the helm chart for fullnameOverride):
root@monitor-tth4k:/# ls /run
lock  secrets
root@monitor-tth4k:/# ls /host/run/containerd/
containerd.sock

Which issue(s) this PR fixes:
I don't think there's an issue for this but I figured it was faster to make a PR than open an issue and make a PR 😅

Fixes #
Special notes for your reviewer:
Checklist

[x] Chart Version bumped
[x] CHANGELOG.md updated

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: cloudmatt
Once this PR has been reviewed and has the lgtm label, please assign cpanato for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Welcome @cloudmatt! It looks like this is your first PR to falcosecurity/charts 🎉

Hi @cloudmatt, the libsinsp cri interface prepends (at runtime) the HOST_ROOT prefix. That's why the path does not contain the /host prefix:
https://github.com/falcosecurity/libs/blob/934a63946801095ef66683f95e0e8e1d4a060008/userspace/libsinsp/container_engine/cri.cpp#L83C2-L83C44

Closing as this isn't needed per the conversation above.