Problem with documentation Compilation Rules example

The example for converting markdown files has a function:
def render_post(env, template, **kwargs)
But the body of the function never uses the template arg, and in my experimenting with the code, it seems to not actually process markdown files. So, it appears to me that the documentation code is simply wrong.

This is not the only issue with this doc, see #87.

I've been talking to the previous maintainer @Ceasar to get admin access to ReadTheDocs, and just got them. So hopefully I can actually start tackling these issues now...

I finally got around to this :)
Please see #102 for my proposed fix.


Avoid using powershell assembly load context with netcoreapp2.0

AppDomain.GetAssemblies is brought back, so we should be able to not relying on the powershell assembly load context and instead directly use the default load context. This will make hosting S.M.A much easier.
Currently this is blocked by https://github.com/dotnet/corefx/issues/18877. AppDomain.GetAssemblies doesn't return dynamic assemblies that are emitted on the fly.

Another similar coreclr bug related to the one blocking our work: https://github.com/dotnet/coreclr/issues/11228


fix: try to reuse last reported sensor scale before defaulting to first supported scale

This should avoid a unit flip-flop in case Fahrenheit sensor readings are queried without the user having set a preferred scale first.
fixes: https://github.com/zwave-js/node-zwave-js/issues/5621

@zwave-js-bot automerge


Add option to open links in browser

As a user, I can open links in my default browser instead of a custom tab.

Nope, that feature is already added via the share icon in the article page.

Closed by #153


Sporadic issues shutting down devstack cleanly

Sometimes when closing devstack (with ctrl-c) it freezes after displaying "Shutting down devstack".  Sometimes, if this is done before the compute nodes are up and running work continues, showing pkg/routing/node_info_publisher.go:106 > failed to publish node info error="context canceled" before freezing.
Often end up having to run kill -9 $(jobs -p) after ctrl-z to recover the terminal.

didn't see this happen for some time, but keeping it open for a little longer

I implemented https://github.com/bacalhau-project/bacalhau/pull/3434 to attempt to resolve this (and related issues), so it may actually be okay now.


Implement RedirectResponse

Besides the HTML and JSON responses introduced in #52 and the empty response implemented in #58, the other most common server-side response type is a redirect. This pull request implements a RedirectResponse, which accepts a URI in order to produce a 302 response with a Location header. As per the other response types, this custom response type allow specifying an alternate status code and headers to use at initialization.
Examples as documented:
// 302 redirect:
$response = new RedirectResponse('/user/login');

// 301 redirect:
$response = new RedirectResponse('/user/login', 301);

// using a URI instance (e.g., by altering the request URI instance)
$uri = $request->getUri();
$response = new RedirectResponse($uri->withPath('/login'));

ping @franzliedke — thought you might find this one interesting.

Cool. I like it. :+1:


Changes label to name

Label's been deprecated.

@bdunne hi :)

Gaprindashvili backport details:
$ git log -1
commit d207653476f8bf4d59717decf9c5a0296fb42ba6
Author: Brandon Dunne<EMAIL_ADDRESS>Date:   Thu Dec 14 08:33:12 2017 -0500

    Merge pull request #16665 from d-m-u/stats_for_day

    Changes label to name
    (cherry picked from commit 1c72fba303fed6fa7fe211d582ff7400b1b2d989)


Improve cleaning up branches merged into master

Thanks for the PR, but please have a look at contributing.md and make the changes are per it.

Should be good to go.


${command:python.interpreterPath} invalid

Issue Type: Bug
It occurs when using in tasks. Example task...
{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Test",
      "command": "${command:python.interpreterPath}",
      "args": ["--help"]
    }
  ]
}

In task runner there is path strangly repeated.
> Executing task: C:\Users\Turtor\ownCloud\Github\mypythontools\c:\Users\Turtor\ownCloud\Github\mypythontools\venv\310\Scripts\python.exe --help <

The terminal process failed to launch: Path to shell executable "C:\Users\Turtor\ownCloud\Github\mypythontools\c:\Users\Turtor\ownCloud\Github\mypythontools\venv\310\Scripts\python.exe" does not exist.

Terminal will be reused by tasks, press any key to close it.

When I change env var just to python, it works, but it does'n not point to venv, but directly to interpreter (I also tried to change it from settings with)
"python.defaultInterpreterPath": "c:/dev/ala/venv/Scripts/python.exe"

I commented out all the settings (cannot used  --disable-extensions as need python extension, but I turned out Task explorer and don't know about any else that could cause it.)
Extension version: 2022.1.1894335164-dev
VS Code version: Code - Insiders 1.65.0-insider (3112460dc48ce7e557ea9feeaae04b912164b48b, 2022-02-24T05:15:20.989Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No

System Info

Item
Value

CPUs
AMD Ryzen 7 5700U with Radeon Graphics          (16 x 1797)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
13.86GB (5.04GB free)

Process Argv
--crash-reporter-id aba5adb7-216e-4666-b9be-e7269f0b1784

Screen Reader
no

VM
0%

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30422396
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
pythonvspyt200:30323110
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
wslgetstarted:30421357
vsclayoutctrt:30405800
dsvsc009:30440021
pythonvsnew555:30438690
vsbas813:30436447
vscscmwlcmt:30428973
azactmsalcf:30432849
vscgsvid1:30433757
dockersurvey3cf:30438169
pynewfile477:30443519
vsnot107cf:30443615

Please try the pre-release version of the extension which likely has the fix:

If it doesn't work, please answer the following:

What is the interpreter you had selected in the first place, the one related to C:\Users\Turtor\ownCloud\Github\mypythontools?

When I change env var just to python, it works, but it does'n not point to venv

What env variable are you referring to here?

but directly to interpreter (I also tried to change it from settings with)
That setting only works if you have no interpreter selected, try using Python: Select Interpreter command instead to choose an interpreter.

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.


support for nested attributes with dynamic number of elements

Rebased as one commit.
Since the validations for each nested attribute are the same, there is no need to have them repeated for each model. Instead, the validations can be specified once for all the nested attributes and then applied to fields at any index.
For example, given users that accepts nested attributes for emails, the form will contain the following fields,
user[email_attributes][0][email_address]
user[email_attributes][1][email_address]
user[email_attributes][2][email_address]
user[email_attributes][N][email_address]

we can specify validation for all email_address fields simply as,
user[email_attributes][][email_address]

This not only sends less data to the client but also works with dynamic forms (i.e. press + to add another email address field).

This is a great addition that works for my dynamic fields.  Thanks!

Cool.
I'm not really sure what's holding up the pull request, though.

I've been busy and haven't had the time to review the pull request, sorry.

Thanks for the update.


Clean Up API from learnings

So, turns out there are a number of code annotation crates, which simply didn't have "error" in their name.

https://github.com/rust-lang/annotate-snippets-rs
https://github.com/brendanzab/codespan

Also, the Span type isn't used (thanks to @Cerberuser from URLO).

Maybe instead of cleaning up this API, users should use something like codespan-reporting.
We could implement an "ascii to html tags" crate.

Maybe instead of cleaning up this API, users should use something like codespan-reporting.
We could implement an "ascii to html tags" crate.


Arkime log timing does not match OS timezone

Is your feature request related to a problem? Please describe.
It seems like the logged time for events are ahead by an hour, does Arkime calculate daylight savings?
Describe the solution you'd like
A manual way to adjust the current time.

Depends what you mean

for session time in ES it uses epoc time
for viewer.log/capture.log it uses the timezone of the computer its running on, so make sure TZ is set
for the UI it uses the timezone of your browser

We won't be adding a way to adjust the current time. Feel free to come to slack to discuss more.


restore-builder: fix logic that prepares resources before import

Don't strip status.lastVersion from buildconfigs: causes build numbers for each restored buildconfig to start from 1, which then clashes with name of a restored build.
Typo: lastTrigerredImageID -> lastTriggeredImageID.
Review why are we stripping spec.triggers.*.imageChange.lastTriggeredImageID.

Perhaps @soltysh could shine some light on this. When doing backup of buildconfigs, should we throw away the values of spec.triggers.*.imageChange.lastTriggeredImageID? Docs say this attribute is "used internally", and oc export drops it so I'd be inclined to drop it as well, however I'm not sure what this means for rebuilds. Can we accidentally start a rebuiuld this way?.

@mmilata imageChange.lastTriggeredImageID informs the controller what was the imageID when the trigger last time fired. If your export does not contain that value it means that repush of the same image (same imageID) will trigger a rebuild. Whereas if that value would be present no rebuild will happen. The reason for why it's being removed is simple, if you re-creating a BuildConfig in a different instance/project/etc. (which is why you do the export, right ;)) then the re-build is fine. In your specific case, the rebuild is not desirable, iuuc. So I'd advice you to have it included in the backup as well.
Lastly, why would you be interested in doing such backup? I might be missing some piece of puzzle, mind shedding some light?

@soltysh, thanks for the info!
As of why, we wanted to be able to back up just the OpenShift resources we are using (that are not created by Ansible). IIRC we used this in the past to migrate the builder from one machine to another.
Is there an official (or just better) way of backing up the cluster we should be using instead?

Generally, the recommended strategy is to backup entire etcd data, which holds all the relevant information. I don't think there exists any specific way of backing up just the selected objects. But if you're interested I'd go with plain oc get bc -o yaml, which will dump you all the BC (with all the metadata), at least you don't care what's missing there, since actually more than you need will be there. But if it's for backup, it's much more relevant, imho.


Bug generating flow diagram

To recreate:
git clone --recurse-submodules https://github.com/NCAR/music-box.git
cd music-box
docker build -t music-box-test .
docker run -p 8000:8000 -it music-box-test

In the browser:
Start Here > Select Example > Full Gas Mechanism
Run
Flow Diagram
Select "ALD2" from species list
Error message:
Internal Server Error: /get_flow
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/music-box-interactive/interactive/dashboard/views.py", line 117, in get_flow
    generate_flow_diagram(request.GET.dict())
  File "/music-box-interactive/interactive/dashboard/flow_diagram.py", line 775, in generate_flow_diagram
    net.show(path_to_template)
  File "/usr/local/lib/python3.9/site-packages/pyvis/network.py", line 551, in show
    self.write_html(name, local)
  File "/usr/local/lib/python3.9/site-packages/pyvis/network.py", line 533, in write_html
    shutil.rmtree(f"{tempdir}/lib")
  File "/usr/lib64/python3.9/shutil.py", line 737, in rmtree
    onerror(os.path.islink, path, sys.exc_info())
  File "/usr/lib64/python3.9/shutil.py", line 735, in rmtree
    raise OSError("Cannot call rmtree on a symbolic link")
OSError: Cannot call rmtree on a symbolic link
2022-11-29 02:06:50,089 - Internal Server Error: /get_flow
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/music-box-interactive/interactive/dashboard/views.py", line 117, in get_flow
    generate_flow_diagram(request.GET.dict())
  File "/music-box-interactive/interactive/dashboard/flow_diagram.py", line 775, in generate_flow_diagram
    net.show(path_to_template)
  File "/usr/local/lib/python3.9/site-packages/pyvis/network.py", line 551, in show
    self.write_html(name, local)
  File "/usr/local/lib/python3.9/site-packages/pyvis/network.py", line 533, in write_html
    shutil.rmtree(f"{tempdir}/lib")
  File "/usr/lib64/python3.9/shutil.py", line 737, in rmtree
    onerror(os.path.islink, path, sys.exc_info())
  File "/usr/lib64/python3.9/shutil.py", line 735, in rmtree
    raise OSError("Cannot call rmtree on a symbolic link")
OSError: Cannot call rmtree on a symbolic link
[29/Nov/2022 02:06:50] "GET /get_flow?includedSpecies=ALD2&blockedSpecies=&startStep=0&endStep=10800&maxArrowWidth=7&arrowScalingType=log&minMolval=0.000e%2B0&maxMolval=1.000e%2B0&currentMinValOfGraph=0&currentMaxValOfGraph=1&isPhysicsEnabled=false HTTP/1.1" 500 150349

being fixed by #335


Add Patrick Zheng as notation-go maintainer

Add Patrick Zheng (@patrickzheng200) as a seed maintainer of notation-go based on their activity as per - https://github.com/notaryproject/notation-go/issues/249
Signed-off-by: Yi Zha<EMAIL_ADDRESS>

Codecov Report

Merging #264 (3dab275) into main (ed6ff0c) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main     #264   +/-   ##
=======================================
  Coverage   73.25%   73.25%
=======================================
  Files          23       23
  Lines        1761     1761
=======================================
  Hits         1290     1290
  Misses        376      376
  Partials       95       95

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Close as aggregated PR https://github.com/notaryproject/notation-go/pull/272 was merged


After running npm start once, it permanently has port 3000

Sorry, probably a noob question. But how can I get port 3000 back? I can't run any other projects since running this.
The npm start command looks to be:
cross-env NODE_ENV=development node server.dev.js
ps aux | grep 3000 and
lsof -P | grep ':3000' | awk '{print $2}'
dont return any process ID, so I have no idea how to kill it.

#276:

chrome://appcache-internals
chrome://serviceworker-internals
Delete the localhost:3000 entry on both sites. Also see #71, #94, #190. Fixed on v3.0.0 branch.

impeccably fast response, thanks a ton.

No worries! Definitely check out the v3.0.0 branch, it's basically done and a lot improved over what's currently on master.


set compile flag and add ci check

@ngc92 - do you want to make the same change for the cuda Makefile?


Text below the dots

Hi, can i make the text below the dots?
Because the default setting, Text appear above the dots.
Pls check my UI

@derrysukrie may I know how you solve this issue?

.slick-dots li button::before {     z-index: -1; }
Is ugly but resolve...


PSR-1510 | Check Status

Note: this PR was created to merge the Check-Status branch into the Validation-Methods branch, because the former is dependent on the latter, and to highlight just the changes made that are specific to the Check status implementation.

@ccatosdevelopment when you are back... Do we still need this PR?


[Refactor] Filter resource mapping catalog when executing show catalogs.

What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[x] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Every hive/hudi resource will create a non-persist inside catalog which named "resourceMappingCatalog".  We shouldn't display resourceMappingCatalog when executing show catalogs.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 1 / 1 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/server/CatalogMgr.java
1
1
100.00%
[]

run starrocks_admit_test


Create data model and pass it to and from screen 1 and save on screen 4

Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata
Definition of Done
Refer to Asteroids DoD document to see any additional details for the items below
Place holder data is incorporated (Refer to Case Management Sample Data document)
Base axe-core JEST test included for any new LWC (No critical violations)

[x] CRUD/FLS is enforced in Apex
Update & Test permission sets to account for new features and CRUD/FLS
[x] All modified classes are unit tested (Apex) at 100% coverage
[x] UX approval or UX not necessary
PR contains draft release notes
[x] Attach work item to the pull request with Lurch **Lurch:attach W-000000 or **Lurch:add
[ ] All acceptance criteria have been met

[x] Developer
[ ] Code Reviewer
[ ] QA

[ ] QE story level testing completed

W-8056275


'hover' not working in multiple using of style

I am using style in multiple div and after apply , ':hover', ':focus', so it not work it has a error on console
here is example code:
Working example
export const getStyles = {
container: {
backgroundColor: '#181818',
display: 'flex',
height: '100%',
position: 'relative',
':hover':{
backgroundColor: 'blue',
}
}
}

 style={getStyles.container}>it's working

here hover is working, everything is nice and clean
But if I use: not working
export const getStyles = {
container: {
backgroundColor: '#181818',
display: 'flex',
height: '100%',
position: 'relative',
':hover':{
backgroundColor: 'blue',
}
}
}

some text
   // using style in multiple div

some text

it's not working come with issue on console is:
(program):157 Uncaught (in promise) Error: Radium requires each element with interactive styles to have a unique key, set using either the ref or key prop. Multiple elements have no key specified.

Read the error message. You need to add the key prop to each of your elements so that Radium knows which one is being hovered.

HI rkrishna-codal,
You can use key. Like as
export const getStyles = {
container: {
backgroundColor: '#181818',
display: 'flex',
height: '100%',
position: 'relative',
':hover':{
backgroundColor: 'blue',
}
}
}

some text
 // using style in multiple div

some text

great!! thanks @chetuvineet

@chetuvineet  thank you so much. it helped me a lot
@rkrishna-codal  i was also getting the same error and found the answer here since you asked the question.


Allow getting stop by string id

When calling mta.stop(stopId), a check is made to see if stopId is a number, an array, or is empty. data is an object, and its keys are strings, furthermore, some stops have non-numeric ids (like S30S), which are inaccessible via this method.
This change allows getting stops by id when their ids are non-numeric.

Thanks!


[tests] Ensure correct implementation of hash computation for ChunkedByCount

After the Nate's comments about hashable correctness in the last PR I note that we have miss that on ChunkedByCount.
This just adjust to take the count in hash computation.
cc @natecook1000 @timvermeulen
Checklist

[x] I've added at least one test that validates that my change is working, if appropriate
[x] I've followed the code style of the rest of the project
[ ] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary

@swift-ci Please test

Thanks, @LucianoPAlmeida!


Reimplement "jump to bottom" button using PortalList::is_at_end()

The "Jump to bottom" button visibility in the chat widget is currently controlled by having an extra empty element in the chat conversation list. When the associated PortalList renders this element it means we are "at the bottom of the list", so the button should be hidden.
In Makepad, a new PortalList::is_at_end() function was recently added. It theory, it should provide the bit of information we need here: if the list is scrolled at the end or not. The task is to replace our previous approach using this cleaner solution.
Note: We need first to bump to the latest Makepad version, which is an ongoing effort now. I will update this issue whenever is ready.

apparently is_at_end() is not flawless yet, but it does appear to work better than prior attempts.
See our discussion here: https://github.com/project-robius/robrix/pull/91#issuecomment-2297081572


Demo Config : Adding AD Indices to system index and creating pre-defined roles

Issue https://github.com/opendistro-for-elasticsearch/anomaly-detection/issues/195
Description of changes:
Moving AD indices to system index and defining pre-defined roles for Anomaly Detection plugin users.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks guys for taking a look.
Addressed all comments.


chore: Add issue forms

Closes #832
Example here: https://github.com/edgarrmondragon/sdk/issues/new/choose

Nice, @edgarrmondragon ! I also really like the CTA/link over to Slack. 👍

cc @afolson, @tayloramurphy, @emilylucie (fyi)


make sphinx vers match st2docs

Updated the sphinx and sphinx-autobuild versions in test-requirements.txt to match what we currently use in st2docs.
We don't need to track our own version of sphinx-autobuild anymore, and we should pin the sphinx version.

:+1:


hipfort install fails with trying to overwrite '/opt/rocm-3.9.0/bin/gputable.txt', which is also in package openmp-extras

I tried an install from scratch following https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu.
This is how I got there:
sudo apt update
sudo apt dist-upgrade
wget -q -O - http://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list
sudo apt update
sudo apt install rocm-dkms
sudo apt-get install hipify-clang hipfort hipcub hipblas hipsparse miopen-hip

This is the error:
$ sudo apt-get install hipify-clang hipfort hipcub hipblas hipsparse
Reading package lists... Done
Building dependency tree
Reading state information... Done
hipblas is already the newest version (<IP_ADDRESS>-rocm-rel-3.9-17-e4d9e7b).
hipcub is already the newest version (<IP_ADDRESS>-rocm-rel-3.9-17-7bda2e4).
hipify-clang is already the newest version (12.0.0).
hipsparse is already the newest version (<IP_ADDRESS>-rocm-rel-3.9-17-c5e4633).
The following NEW packages will be installed:
  hipfort
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
Need to get 0 B/699 kB of archives.
After this operation, 1,025 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 354918 files and directories currently installed.)
Preparing to unpack .../hipfort_0.2-0.33-rocm-rel-3.9-17-0b90b4d_amd64.deb ...
Unpacking hipfort (0.2-0.33-rocm-rel-3.9-17-0b90b4d) ...
dpkg: error processing archive /var/cache/apt/archives/hipfort_0.2-0.33-rocm-rel-3.9-17-0b90b4d_amd64.deb (--unpack):
 trying to overwrite '/opt/rocm-3.9.0/bin/gputable.txt', which is also in package openmp-extras 12.9-0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/hipfort_0.2-0.33-rocm-rel-3.9-17-0b90b4d_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Linux
$ uname -a
Linux jrhammon-nuc 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Hardware
I have Vega M in a Hades Canyon NUC.
$ lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          8
On-line CPU(s) list:             0-7
Thread(s) per core:              2
Core(s) per socket:              4
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           158
Model name:                      Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz
Stepping:                        9
CPU MHz:                         800.020
CPU max MHz:                     8300.0000
CPU min MHz:                     800.0000
BogoMIPS:                        6199.99
Virtualization:                  VT-x
L1d cache:                       128 KiB
L1i cache:                       128 KiB
L2 cache:                        1 MiB
L3 cache:                        8 MiB
NUMA node0 CPU(s):               0-7
Vulnerability Itlb multihit:     KVM: Mitigation: Split huge pages
Vulnerability L1tf:              Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Vulnerability Mds:               Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full generic retpoline, IBPB conditional, IBRS_FW, STIBP conditional, RSB filling
Vulnerability Srbds:             Mitigation; Microcode
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch
                                 _perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2
                                 apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexprior
                                 ity ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hw
                                 p hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Issue will be fixed in next release. It's know in current release. Please stay tuned.
Please follow https://rocmdocs.amd.com/en/latest/Current_Release_Notes/Current-Release-Notes.html#known-issues
for workaround for the time being.


Possible to support the new "codes" function?

Recently, BHVR introduced a reward code system. I hope that their API can be fuzzed to find the valid (global) reward codes.

Yes and no, code validation is server sided, but code redemption is obviously possible.

Hmm no way to get a master list then? Makes sense, unfortunate though.


Fix prototype of NativeError objects

Internal property [[Prototype]] of EvalError, RangeError, ReferenceError,
SyntaxError, TypeError and URIError should be Error.
ES 5.1 <IP_ADDRESS>
JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna<EMAIL_ADDRESS>

I think that this feature is only for ES6, while in ES5.1 it should remain Function object. I will fix the commit in a while.


Azure Key Vault Core and Extensions Packages

This PR contains two new preview libraries for Azure Key Vault that provide additional capabilities beyond the basic Key Vault REST client.

Can one of the admins verify this patch?

Hi @herveyw, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (herveyw). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

Closing this pull request to update the API model now that the Key Vault client has been declared to be thread safe.


[Feature] Implement HiveMetastore

What type of PR is this：

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
https://github.com/StarRocks/starrocks/issues/11349
Problem Summary(Required) ：

Use hive meta client to access hive metastore
Convert org.apache.hadoop.hive.metastore.api.x object to StarRocks object.


Feature request: filterEntities: 'binary_sensor.' 'sensor._device_temperature*'

First off what a great add-on. Thank you for your commitment to making this possible.
I have a feature request, it would be cool if we could config multiple filters e.g.:
filterEntities: 'binary_sensor.*' 'sensor.*_device_temperature*'
or
filterEntities: 'binary_sensor.*' filterEntities: 'sensor.*_device_temperature*'

Sounds like a good idea !

Added to V1.0.41.
Syntax for multiple filters is a YAML list:
type: custom:history-explorer-card
filterEntities:
  - 'binary_sensor.*'
  - 'sensor.*_device_temperature*'

Wow, thanks for implementing this! Keep up the good work!


weather_insights result in "Weather Insights service call failed with error HTTP response"

Hi,
I'm trying to use weather_insgihts node in a Node-Red flow for very basic flow of getting current obervations for the lat,lon values of 45.42,75.69. I'm using the credentials from the bluemix service entered in to weather_insgihts node within Node-Red flow. When I deploy and request for weather data (I"m using trigger to request through Inject Node), the call fails and results with the error message - "Weather Insights service call failed with error HTTP response", even it does not say the HTTP Status Code.
I added node.log with in the weather_insights.js code to dump response.statusCode to find out that the returned HTTP Status Code is 401 which is UnAuthorized found from API page. I used the same credentials with the REST API to get current observations - https://username:password@twcservice.mybluemix.net:443/api/weather/v1/geocode/45.42/75.69/observations.json?units=m&language=en-US , I"m able to get the result with response code 200.
Am I missing anything to use weather_insights node?

I've just tested my local install of the Weather Insights Node using this flow using my credentials and I can retrieve the results in Node-RED.
Can you test this flow in your editor by importing the JSON (remembering to fill in your username and password in the edit dialog)?

I imported the flow and filled in my credentials and selected the service as Observations, deployed the flow and triggered the flow, now I'm seeing 404 error.
Another difference I notice is the code difference between one available on github and the module installed from NPM. I have this version of module installed from NPM:
npm list node-red-bluemix-nodes
<EMAIL_ADDRESS>/Users/lharalak/github/node-red
└──<EMAIL_ADDRESS>Can you also please check the node available on NPM is with latest code as it's there on github?

Hi - sorry - been on vacation... now published 1.0.4 to npm

This should be resolved now, open the issue again if you have any further issues.

Right, with 1.0.4 it's working fine. Thank you!


📦 NEW(oberoncms/adapter): s3 adapter with recipe example

an s3 plugin and recipe dropped :'D

rebased this from main, so it doesn't gets merge conflicted history

I squash merge to main, so you can just do a merge if it's easier.
Tangentially, you should probably be raising the pull PR from a branch on your repo - that way it's easier to keep main in sink. Also at the moment I can write to main on your repo (because when you raise a PR it gives me permission to write to your repo).


fix: removes duplicate safe

@thinkAfCod I removed the safe address from this project because it was already included in one of your other projects and we can't have any "shared artifacts"


feat: only update when the user wants to

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

67 of 235 (28.51%)  changed or added relevant lines in 8 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.8%) to 85.017%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/nav/AppNav.jsx
18
21
85.71%

src/hooks/bindings.js
1
5
20.0%

src/state/update.js
15
21
71.43%

src/Root.jsx
0
10
0.0%

src/pages/App.jsx
26
171
15.2%

Totals

Change from base Build<PHONE_NUMBER>2:
-0.8%

Covered Lines:
13483

Relevant Lines:
15662

💛  - Coveralls


[Idea]: Code generator from our codebase

What happened?
First, sorry I write this on bug, i choose template/type but all 404 except Bug Report
How to reproduce the bug
Soo I not write about reproduce bug here
Package Version

PHP Version
0
Laravel Version
0
Which operating systems does with happen with?
Linux
Notes
Hi @joshembling
I like the idea about this package because this is will index my codebase, but currently just have limitation to just ask some question
Using indexing with AI will have benefit to learn our codebase, I think is possible to use this index to automatically generate file to us using our codebase, for example I have pattern Controller > Repository > Service, and export script, import script, testing, routing, blade, for all standar basic CRUD codebase
I think we will have a lot of time to create this pattern, but the pattern just change the name right  ? (and other standard repetition)
Just change the file name and some field, this repetition I think can do with AI to generate codebase with AI, this will generate the file, All naming convention, Camel, Snake, Kebab, Pascal Case, etc will convert/generate automatically by AI
To generate just codebase will really help full, I think is enough
But will really cool if AI, can give some input for example field list, so we just give name and field list, and AI will generate for us
Or just we just create the schema migration, and AI will scan our database to automatically generate field and all relation script
I know this will be some error, but this is must fix with developer itself, the  developer just focus to business process, and all not standard feature for specific purpose
I don't know this still related with this package goal or maybe on another package, but if this can do, will realy cool
*Just my wild imagination hehehe 🤣

Hi @adiramardiani
Thanks for your suggestion(s), although I'm not 100% certain what you are asking for.
If you are looking for a way to automatically list index files/directories within your config, I imagine this is already a good use case for Copilot as it can type hint based on previous input.
Likewise, if you are looking for suggestions on fields within a migration, Copilot will also be able to do that for you in the same way.
I hope this helps.


range_max argument in return_id_scaling_gride does not indicate the actual max data range

Subject of the issue
Specify better the behaviour of range_max argument in return ID scaling gride
For some dataset (e.g. helm-mmlu-anatomy?) the range_max argument does behave properly: it computes one scale less than expected

Also, add at the output of the ID methods the "scales" over which the IDs are computed (N, k) rather that the distances over which the IDs are computed


[Blazor][Fixes #12056] Avoid producing warnings for bad inputs.

Does not produce warnings when receiving invalid event arguments.
Does not produce warnings when receiving an invalid event handler id.
Does not produce warnings when receiving an ack for an unknown batch.

:up :date:

:up: :date: @rynowak Anything left here?

Looking good now. Just one nitpick about a name from me.


mouse not disappearing?

i find this fix really helpful and the increased quality is appreciated, but sadly the mouse doesn't disappear when playing!

Agreed, I would like to know wether that functionality is busted or if there's a way to turn it on


Esx_legacy

Greetings!
I have started using your system on my esx_legacy server.
Whatever I want to ban someone I get this error:
server/main.lua:487: attempt to index a nil value (global 'xPlayer')
I have added myself as admin also trying it even in group. Still nothing.
I am using rockstar license system.
Thank you for help

Hello @Michael2010117 I've recently updated my server to ESX Legacy, and felt obligated to make some changes to this Ban System.
I'll leave here my "Legacy Version" of this system.
Note: This is working 100% on my server and I don't think that you'll need to change anything, but who knows?
If you need help with something feel free to ask!
Download: https://www.mediafire.com/file/6juv4gnnktpe3el/HR_BanSystem.rar/file
VirusTotal:


New promise polyfill

Resumed from #255

So I think actions here primarily on @jonathantneal:

Do you want to do your Promise.all refactor?  (and could we maybe consider pushing it upstream into @Octane's version?)
Is my fix for the setImmediate embedded polyfill OK with you (and should we drop it entirely and use the canonical setImmediate polyfill as a dependency?)

And any more general feedback on the ideas for tracking 3rd party sources that I put in https://github.com/Financial-Times/polyfill-service/pull/255#issuecomment-71439382 before we adopt this PR?

If you're not going to use ASAP, then using the dependency is probably the best idea. I mean, the way it's written people can include the setImmediate polyfill in their request and they'll get relatively fast promises. But it's not documented anywhere and few people will know how to speed them up, so you might get some cases of people complaining "why is this soo slooow?".

@juandopazo I don't have an opinion on ASAP.  As this PR currently stands it seems an improvement on what we already have, so can we merge this and then we can resolve the issue of spawning async tasks as a separate issue (which I'm happy to open)?

@triblondon sure!


Question: MS MARCO implementations

I want to implement it for MS MARCO datasets, the change should be in preprocessing datasets only?

Check this paper https://arxiv.org/abs/1706.04815


libs: Add static compatiblity check for Rust

Summary
This patch adds a static compatiblity check
for most of structures from NuttX, which is used by Rust.
Currently, for most of them have a reserved field, which is for possible future use, you can refer to https://github.com/no1wudi/libc/blob/39277b5357cb2aa7af1bd8344956ec292c35abed/src/unix/nuttx/mod.rs#L71 for more details.
I think we should define the initial version carefully, to avoid compatiblity problems in future as much as possible:

Struct reserved size is 2 pointer size, is it sufficient?
Which option should we preferred to use? Such as SYSTEM_TIME64 and FS_LARGEFILE?
Should we enable it by default to cover more cases in build CI? It can prevent introduce compatiblity issues.

Please feel free to comment

Why not generate structure code dynamically, but bind statically?

Why not generate structure code dynamically, but bind statically?

Please see https://github.com/apache/nuttx/issues/12960, generate structure code dynamically is OK on technical, but binary compatibility cannot be guaranteed.
Thus the libc/libstd of Rust can not be built without NuttX develop enviroment, if you want to use them, you must use the nighlty toolchain of Rust instead of stable toolchain.
Consider in Rust, the direct use of structs from libc is not very common, so there is an opportunity to implement binary compatibility for these structs.

I'm voting no on this PR unless there are other RTOS that use similar alternative practices.

Why not support both approach?

NuttX is compliant with POSIX, so it could take the integration approach used by Linux and *BSD as https://github.com/apache/nuttx/pull/13245 and https://github.com/apache/nuttx/issues/12960.
Or RTOS approach as https://github.com/apache/nuttx/pull/12862 and https://github.com/apache/nuttx-apps/pull/2462

I'm voting no on this PR unless there are other RTOS that use similar alternative practices.

Hi @anchao are we thinking of the bindgen approach? As discussed, it's potentially possible, but it will require special tools because we don't want to recompile libc and libstd for every NuttX Platform. Unlike other OSes (like Linux), I don't think we can afford the effort to create these special tools.

libc/libstd definitely needs the participation of nuttx to be compiled, similar to the WAMR glue code we did before, which allows rust to be bound to a certain configuration to avoid doing these meaningless work. It is a common practice for different nuttx header files to generate different lib/libstd.

@anchao You can refer to the libc crate for other supported platforms, for example TEEOS:
https://github.com/rust-lang/libc/blob/0e6afd534ed7a0406e9dfc9242c2c9370a5b8d05/src/teeos/mod.rs#L106-L109
and newlib based ROTS:
https://github.com/rust-lang/libc/blob/0e6afd534ed7a0406e9dfc9242c2c9370a5b8d05/src/unix/newlib/mod.rs#L240-L272
For NuttX, reuse the unix port is better.
Only a few data structures need to be defined on the Rust side, and they should be kept in sync with the native definitions on the NuttX side, which are usually related to libc and POSIX/pthread. For function definitions, there should be no doubt; follow the standard definitions to proceed.
For other NuttX private interfaces, such as various peripheral drivers and tasks, the bindgen method can be used for support. These additional packages are not within the scope of libstd and should be provided through additional crates.

Hi @acassis do you think we should proceed with this approach, to verify the NuttX Struct Sizes? This is for creating the initial version of Rust Standard Library for NuttX. Thanks!

@no1wudi could we check the struct layout by parsing symbol from image's elf file, which is less intrusive and more accurate?

@no1wudi could we check the struct layout by parsing symbol from image's elf file, which is less intrusive and more accurate?

That need NuttX to build with debug symbol enabled and add a post action after linking. But, why parsing symbol from elf file is more accurate than this approach?

Hi @acassis do you think we should proceed with this approach, to verify the NuttX Struct Sizes? This is for creating the initial version of Rust Standard Library for NuttX. Thanks!

@no1wudi @lupyuen maybe we should have an option to let the user test it even when we don't have the guarantees case he/she enables EXPERIMENTAL, what to you think?
Something like:
	depends on (SYSTEM_TIME64 && FS_LARGEFILE && !SMALL_MEMORY) || EXPERIMENTAL

@no1wudi @lupyuen maybe we should have an option to let the user test it even when we don't have the guarantees of Struct Sizes case he/she enables EXPERIMENTAL, what to you think?
Something like:
	depends on (SYSTEM_TIME64 && FS_LARGEFILE && !SMALL_MEMORY) || EXPERIMENTAL

@acassis Do the test for more case is good idea but if the essential kconfig is missing, the test will fail and affects normal usage with EXPERIMENTAL enabled.
Or we use a python script to do the check with elf file after build.

@no1wudi I agree with Alan:

Rust Standard Library on NuttX will need lots of testing by the NuttX Community. So it's good to release the Initial Version early, get feedback, improve and iterate.
EXPERIMENTAL is good to have because it encourages more folks to try out. And to propose fixes if it breaks.
About the Python Script checking with ELF File: Maybe we can do this in the next release? I think it's better to release the first version early, without too many features. Thanks!

@lupyuen @acassis OK, indeed, a significant amount of work is still required before it stabilizes. I would like to clarify that the issue regarding the compatibility of struct definitions will take a longer period to address. Firstly, if NuttX introduces any breaking changes, these changes will first be integrated into libc.
Then, we will wait for the libc crate to release a new version, followed by upgrading the Rust libstd's dependency on libc to the latest version. The entire cycle could potentially take several months.
Currently, I would like to draw everyone's attention to the fact that, in order to reduce the likelihood of such occurrences, my current approach is to reserve space equivalent to two pointer sizes for each structure definition on the Rust side to accommodate updates on the NuttX side:

Once this PR is merged, it means that any modifications to these structures will be restricted, especially when adding new structure members.
Is the reservation of space equivalent to two pointer sizes appropriate?

Regarding question 1, I personally believe that the structures currently under review are all included in the POSIX definition. POSIX defines the minimum set of members within these structures and allows OS implementations to extend them. Therefore, if modifications to these definitions are necessary, especially when adding internal data required by NuttX's implementation, special handling for them should be acceptable. For example, with struct tm:
https://github.com/apache/nuttx/blob/32801d3047174ef30cea759d0ec0dcd31a077bca/include/time.h#L139
tm_gmtoff is not in POSIX: https://pubs.opengroup.org/onlinepubs/9699919799.orig/basedefs/time.h.html
If in the future we need to add other similar non-standard members that cause the reserved space to be insufficient, then we can wrap these members into an internal NuttX structure and point to this internal structure from struct tm using a pointer.

The CI report error if EXPERI enabled:

@no1wudi Sorry I didn't realise the implications. Could we remove EXPERIMENTAL for now, and add it to the next version? So we don't hold up the release of librust. Thanks!

Let's wait feedback from https://github.com/rust-lang/libc/pull/3909 before merge this PR.

does this mean to require everyone here, who might not care rust at all, to maintain certain abi compatibility for rust?
i'm not sure if it's a good idea.
if rust doesn't work well w/o os-level abi stability, it's a problem in rust, not nuttx.

does this mean to require everyone here, who might not care rust at all, to maintain certain abi compatibility for rust? i'm not sure if it's a good idea. if rust doesn't work well w/o os-level abi stability, it's a problem in rust, not nuttx.

Not just for Rust, it's a common issue for NuttX now, image that you have a prebuilt .a library that referenced to NuttX header, and once the structure or config changed in NuttX side, you must re-compile the static library from source.
Maybe by this approach, not only Rust but also can provide relative stable binary interface for this usage.

does this mean to require everyone here, who might not care rust at all, to maintain certain abi compatibility for rust? i'm not sure if it's a good idea. if rust doesn't work well w/o os-level abi stability, it's a problem in rust, not nuttx.

Not just for Rust, it's a common issue for NuttX now, image that you have a prebuilt .a library that referenced to NuttX header, and once the structure or config changed in NuttX side, you must re-compile the static library from source.
Maybe by this approach, not only Rust but also can provide relative stable binary interface for this usage.

my impression is that "recompile everything on configuration changes" isn't a big problem for many of users of nuttx.
users tend to prefer better optimizations (smaller structures, lto, etc) over abi stability.
as it's a big policy change with pros and cons, i suspect we should discuss this topic with a wider audience.

Hi @no1wudi could you share on the Mailing List the current approach for Rust Standard Library? And explain the tradeoff between Better Optimizations (smaller structures, lto, etc) vs ABI Stability? I think we need the community to agree on this. Thanks!

Hi @no1wudi could you share on the Mailing List the current approach for Rust Standard Library? And explain the tradeoff between Better Optimizations (smaller structures, lto, etc) vs ABI Stability? I think we need the community to agree on this. Thanks!

OK

@yamt @lupyuen The current approach is not to enforce a mandatory requirement that we cannot modify these structures or the values of macro definitions, but rather to strengthen the review of their modifications. If possible, we should try not to modify them. However, if these modifications are indeed necessary, we should make the changes in conjunction with the Rust side.

Make it read to review since https://github.com/rust-lang/libc/pull/3909 merged

should we move the code to apps(e.g. rustcheck)? since all of them is checking the size and offset of posix type.


Add the payment endpoints

@rybit why aren't you using a middleware to check admin access? I'm pretty sure that would reduce a lot of duplicated code and simplify things

another example is that for /users is admin only but /users/:id is user || admin. And if I add a middleware to /users for admin only it will block /users/:id. One of the reasons I'd like to move to echo but it isn't worth the rewrite

LGTM


Add link checking to https://www.coronawarn.app

Feature description
For website https://www.coronawarn.app add link checking to site tools.
This follows on from the question https://github.com/corona-warn-app/cwa-website/issues/889.
Consider integrating link checking into the checks done in workflows:

https://github.com/corona-warn-app/cwa-website/blob/master/.github/workflows/build.yml and
https://github.com/corona-warn-app/cwa-website/blob/master/.github/workflows/deploy-master.yml

Also, consider regularly monitoring https://www.coronawarn.app in order to catch changing and dead external links.
Problem and motivation

There is no check done when changes are made to the website https://www.coronawarn.app which might ensure that existing (internal) links are not broken. For example see issue https://github.com/corona-warn-app/cwa-website/issues/1778.
If external links change, there is no check done to ensure that the links on the website https://www.coronawarn.app/en/ continue to work. For instance there are currently at least two dead external links (see  https://github.com/corona-warn-app/cwa-website/issues/1779 and https://github.com/corona-warn-app/cwa-website/issues/1780) on the website.

Is this something you're interested in working on
Unfortunately I don't have the experience to implement this.

Internal Tracking ID: EXPOSUREAPP-9734

@MikeMcC399 Thanks. We will look into this. Internal Tracking ID: EXPOSUREAPP-9734

https://www.deadlinkchecker.com gives some false positives for e-mail obfuscation and links with umlauts in them, but it does also find some dead links on https://www.coronawarn.app/en/ which in some cases have been there for quite a while.
For instance https://www.coronawarn.app/de/blog/2021-05-12-corona-warn-app-version-2-2/, which is four months old, includes a link
+49 30 498 75401 which resolves to the bad URL
https://www.coronawarn.app/de/blog/2021-05-12-corona-warn-app-version-2-2/+493049875401
that is probably intended to be
+49 30 498 75401
as used in the English language version of the page on https://www.coronawarn.app/en/blog/2021-05-12-corona-warn-app-version-2-2/
"tel:" is simply missing in the German language source https://github.com/corona-warn-app/cwa-website/blob/master/blog/2021-05-12-cwa-2-2/index_de.md in line 41.

@MikeMcC399  FYI https://github.com/corona-warn-app/cwa-website/pull/1786

Thanks to @dsarkar and @mtb77 for implementing the link check in cypress! 🚀
The test does not yet run error free and this should be covered in separate issues.
Closing this request now, since the request has been implemented and it is now just a case of fixing some bad links and ensuring that the script errors really only occur when there is an actual error. This is just a small and manageable number of error lines at this time.


Apply a heartbeat pattern to AWS SQS consumers using ChangeVisibilityTimeout  feature

Basically using ChangeVisibilityTimeout to extend the visibility time if service can't  complete the processing of message with-in visibility timeout.
It could be in the framework or at least provide a extensibility in the framework for developer to implement ChangeVisibilityTimeout if they choose. This will help to keep  visibility timeout  low & extend if processing takes longer time.
.
More details is here.
How to apply a heartbeat pattern to your AWS SQS consumers in .Net | by Erick Gallani | Medium

Hello, while the framework is still under initial development, we do have a heartbeat feature planned (and implemented already).
Design doc: https://github.com/awslabs/aws-dotnet-messaging/blob/main/docs/design/message-visibility-timeout-handling.md
builder.AddSQSPoller("<queueURL>", options =>
{
    options.VisibilityTimeout = 30;   // initial visibility timeout, also how long we extend the timeout if necessary
    options.VisibilityTimeoutExtensionThreshold = 5;  // how long before a message would be come visible again that it's eligible for extension
    options.VisibilityTimeoutExtensionHeartbeatInterval = 1; // how often we check all in flight messages that may need extension
});

For the above configuration, every 1 second, we check any messages that we're still processing on the client. If any have been received 30 - 5 = 25 seconds ago (or older), then the framework extends the visibility timeout of those messages for another 30 seconds.
Is that configurable enough for your use case? Or do you imagine wanting to extend this with our own extension logic?

Ok, this what I wanted, Thanks


AngularJS support

Does this plugin support custom objects/services/factories for AngularJS? Is there an example .tern-project file available including Angular? I would love to use this with my Brackets setup.

I got this :

Make a blank file inside the root of your project, name it .tern-project and put:
{
  "libs": [
    ""
  ],
  "loadEagerly": [ "js/*.js"],
  "plugins": {
    "angular": {}
  }
}

you dont need angular because it contains one in the directory C:\Users\YourName\AppData\Roaming\Brackets\extensions\user\ternific\node_modules\tern\plugin`

@abdelouahabb Thanks for responding. This one definitely fell through the cracks.  Your configuration seems correct to me.
@trazek Please let us know if what @abdelouahabb provided resolves your issue.

@MiguelCastillo any idea how to include React because it seems that a special version of the library must be made, putting the lib in the folder was invisible to be loaded :(

Yeah, you should be able to specify absolute/relative paths to it.  Here is an example of a config file that loads a react plugin that is in ternific's "custom" directory. Relative paths are relative to ternific's install directory...
{
  "plugins": {
    "./custom/react": {}
  }
}

You can specify an absolute path to the plugin file as well.  Perhaps I can add a way to specify a way to load a file relative to the project, but that does not yet exist.

BTW, this is the method loads the plugins in the worker thread.  https://github.com/MiguelCastillo/Brackets-Ternific/blob/master/TernWorker.js#L43

@MiguelCastillo dident load it, I created a new directory, and put react there C:\Users\Abdelouahab\AppData\Roaming\Brackets\extensions\user\ternific\node_modules\tern\custom
{
  "libs": [
    ""
  ],
  "loadEagerly": [ "js/*.js"],
  "plugins": {
    "./custom/react": {}
  }
}

Yeah it wont find because you are putting it in tern's directory.  The path is relative to ternific.  You can probably confirm this if you opened up the debug console :)
You can either put "custom/react.js" directly under ternific or change your config to
{
  "libs": [
    ""
  ],
  "loadEagerly": [ "js/*.js"],
  "plugins": {
    "./node_modules/tern/custom/react": {}
  }
}

Says that this file is missing? (an empty file?)

Yeah, that error is different.  That one is because you have an empty entry in the libs section. I should add a guard in the code for that, even though that's pretty much handling issues with an invalid config file, so I am not sure how I feel silently handling it yet.

Now I dont get any error, but still not autocompletion detected :(

To be honest, I have not used the react plugin. So I couldn't really tell you what to expect...  Would you mind posting a link for it so that I can take a look?

This is the defacto of the DOM manipulation now :D
here is what it gives in PyCharm

Ah! defacto you say! @abdelouahabb I love the spirit. :)   I meant specifically if you knew of a tern plugin for react that you were using.  Not about react itself :)

looool sorry, I searched on internet, and found that there is a plugin but have limitation https://github.com/angelozerr/tern-react

Cool, that's what I wanted to know.  Which react plugin for tern are you using.  Is that the one you are using?  Or were you expecting it to be a built in plugin?
BTW, I love react. Use it and abuse it everyday :)

React is awesome :dancer:
but the problem is that to use it, there are two main solutions which are :
Commercial using JetBrain products, or, Atom which is memory-hungry.
and in Brackets, I thought it will be loaded automatically, so, it needs another plugin?
NB: I come from python world, and I thought it will be the same concept of loading methods without requiring independant plugin for every library.

I hear ya.  So, first off... Tern does not yet ship with react... :-/  I am hoping this will change somewhat soon.
Second, I would love to see support for react in tern either way... So do you think you can try to get that tern plugin working?  I am going to try that on my side later this evening as well.  But it would be really helpful if you can independently get it working :)

installed it at C:\Users\Abdelouahab\AppData\Roaming\Brackets\extensions\user\ternific\node_modules\tern-react and still nothing

cool, thanks for trying. I will give it a shot tonight and let you know.

thank you, and sorry for delay :D


feat: add types for nmr spectra

Thanks, I'd like to discuss with @lpatiny about the plan for these types and then merge

@kjappelbaum I did rebase this branch with your recent changes,
do you are able to use this library via npm link?


panic: runtime error: invalid memory address or nil pointer dereference

When going through the readme on MAC OS X running the command
fn apps create myapp
throws a
panic: runtime error: invalid memory address or nil pointer dereference
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x158c628]

goroutine 1 [running]:
github.com/iron-io/functions/fn/commands.(*appsCmd).create(0xc42051c090, 0xc4200ddb80, 0x1, 0x16e49ff)
	/home/ubuntu/go/src/github.com/iron-io/functions/fn/commands/apps.go:144 +0x2a8
github.com/iron-io/functions/fn/commands.(*appsCmd).(github.com/iron-io/functions/fn/commands.create)-fm(0xc4200ddb80, 0x0, 0xc420413e00)
	/home/ubuntu/go/src/github.com/iron-io/functions/fn/commands/apps.go:36 +0x34
github.com/iron-io/functions/vendor/github.com/urfave/cli.HandleAction(0x1613380, 0xc4204135f0, 0xc4200ddb80, 0x1, 0x0)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/app.go:485 +0xd4
github.com/iron-io/functions/fn/app.prepareCmdArgsValidation.func1(0xc4200ddb80, 0x0, 0xc4200ddb80)
	/home/ubuntu/go/src/github.com/iron-io/functions/fn/app/app.go:120 +0x357
github.com/iron-io/functions/vendor/github.com/urfave/cli.HandleAction(0x1613380, 0xc4203e28c0, 0xc4200ddb80, 0xc420071300, 0x0)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/app.go:485 +0xd4
github.com/iron-io/functions/vendor/github.com/urfave/cli.Command.Run(0x16e624f, 0x6, 0x0, 0x0, 0xc420413670, 0x1, 0x1, 0x16f0083, 0x10, 0x0, ...)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/command.go:193 +0xb72
github.com/iron-io/functions/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc4200f9860, 0xc4200dd900, 0x0, 0x0)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/app.go:374 +0xacc
github.com/iron-io/functions/vendor/github.com/urfave/cli.Command.startApp(0x16e406e, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x16f2b57, 0x13, 0x0, ...)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/command.go:280 +0x824
github.com/iron-io/functions/vendor/github.com/urfave/cli.Command.Run(0x16e406e, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x16f2b57, 0x13, 0x0, ...)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/command.go:79 +0x14c7
github.com/iron-io/functions/vendor/github.com/urfave/cli.(*App).Run(0xc4200f96c0, 0xc42000e280, 0x4, 0x4, 0x0, 0x0)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/app.go:250 +0x7d0
main.main()
	/home/ubuntu/go/src/github.com/iron-io/functions/fn/main.go:10 +0x53

Looks like the same issue I ask before , check it out:
https://github.com/iron-io/functions/issues/665

It's similar sure, but I tried to change the API_URL with no avail. I get a parse error for <IP_ADDRESS>:8082

@JosephShering
can you try API_URL=http://<IP_ADDRESS>:8082 fn
(yeah http protocol prefix is necessary.)
Also, have you checked your version ? fn version  ?

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x46a74b0]
goroutine 120 [running]:
github.com/ethereum/go-ethereum/eth/filters.(*EventSystem).eventLoop(0xc42186ac80)
/Users/travis/gopath/src/github.com/ethereum/go-ethereum/eth/filters/filter_system.go:434 +0x330

@raky35 can you please provide little bit more information ? Your system, fn tool version, your application context etc ? (which command you run when you get the message etc ? what are API_URL env variables if passed ?)
As a side note, ethereum source is not referenced anywhere in the IF code base. I think your problem is not related to iron functions.

This is an old issue, but I found it googling for a solution to a panic crash while running 'fn apps create myapp' as well.  I had the container running on a different port and specifying a correct API_URL fixed the problem.
Just hoping to help the next person who comes along :)


click version 8.0.0 seems removed _verify_python3_env which still called from dask utils.py

Installing from scratch in new conda environment with conda install dask; expecting to have dask-ssh working as expected but error thrown.
> dask-ssh
Traceback (most recent call last):
  File "/opt/conda/envs/dask_pyarrow/bin/dask-ssh", line 11, in <module>
    sys.exit(go())
  File "/opt/conda/envs/dask_pyarrow/lib/python3.9/site-packages/distributed/cli/dask_ssh.py", line 194, in go
    check_python_3()
  File "/opt/conda/envs/dask_pyarrow/lib/python3.9/site-packages/distributed/cli/utils.py", line 33, in check_python_3
    _unicodefun._verify_python3_env()
AttributeError: module 'click._unicodefun' has no attribute '_verify_python3_env'

What you expected to happen:
run dask-ssh to launch scheduler and workers.
Minimal Complete Verifiable Example:

Create new conda env: conda create --name dask_pyarrow
Install conda install -c conda-forge dask=2021.4.1
Validate click package is 8.0.0
Run dask-ssh

Anything else we need to know?:
Reverting to click 7.1.2 allow me to use dask-ssh
Environment:

Dask version: 2021.4.1
Python version: 3.9.4
Operating System: openSUSE
Install method (conda, pip, source): conda

Thanks for reporting @lgonzalezsa. The latest distributed release (version 2021.05.0) includes updates to handle click >= 8. See https://github.com/dask/distributed/issues/4817 for more details. Additionally, we've patched all older releases of distributed on conda-forge to pin click < 8. For example, when I run the steps you've outlined above, click=7.1.2 is installed:
$ conda create --name dask_pyarrow
$ conda activate dask_pyarrow
$ conda install -c conda-forge dask=2021.4.1
$ conda list click
# packages in environment at /Users/james/miniforge3/envs/dask_pyarrow:
#
# Name                    Version                   Build  Channel
click                     7.1.2              pyh9f0ad1d_0    conda-forge

Can you confirm that you're installing dask from conda-forge?
Alternatively, if you can update to the latest dask / distributed releases, then any click-related issues should also be resolved

Perfect! all set now, also running 2021.5.0, no more issues.
Thank you!
conda-forge correct!


Point Boundary for 1D Meshes

The mesh class lacks a method to add boundary elements to 1D meshes. This PR adds a method for adding point boundary elements to fix this problem.

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#1856
@termi-official
@v-dobrev
@v-dobrev + @kmittal2
11/01/20
⌛due 11/15/20
⌛due 11/22/20

Merged in next for testing...


[Bug] Double click back to main layout on tmtv

Describe the Bug
Seems like broken
https://github.com/OHIF/Viewers/assets/7490180/56e61eb0-4139-4978-9675-898c946e2e9e
Steps to Reproduce
Go to tmtv and double click and go back
The current behavior
It has empty viewports
The expected behavior
Should not
OS
mac
Node version
18
Browser
Chrome

reported also here :https://github.com/OHIF/Viewers/issues/3652


Showcase Request: Stateless EVM Coprocessor

Today, onchain applications are highly restricted in what computations they can do because of Ethereum's high gas costs. With ZKPs, developers can make use of more powerful compute in their onchain application by utilizing a "coprocessor": a method of moving computation off-chain and then verifying a succinct proof of this computation onchain (for only ~200k gas).
With SP1, it is trivial to implement your coprocessor logic in Rust. But a lot of Solidity developers are used to writing their code in Solidity and might not want to use Rust for their coprocessor. But, there is an easy way to enable Solidity coprocessors with SP1: we can use the revm interpreter to execute EVM bytecode inside SP1 and prove valid execution of Solidity functions.
You can look at this repo for inspiration on how to use revm and its InMemoryDb to verify execution of stateless EVM bytecode.
A great demo example would be showing how SP1 can prove valid execution of a Solidity library (as libraries are stateless) using the revm interpreter and other EVM-related Rust crates.

Can I take this ?

@supernovahs definitely, feel free to work on it and ask any questions in the chat!

Interested, LFG

sp1-reth is public . issue can be closed


Unhandled Exception

I successfully installed zulip on my 1und1 vserver and now try to test there. How can I access it? I added the url to settings.py but it's not working. I got an error named "Unhandled Exception" (An unhandled exception was thrown by the application.)
Not sure if it's really a zulip problem... I have the test version not the production version!

Can you include the actual error output? There're logs in /var/log/zulip/.

Which one do you need? There are many of it ;) The errors.log and server.log is empty. Here is what you can chosse ;)
[code]
digest.log
django.log
email-deliverer.log
errors.log
events-confirmation-emails.log
events-deliver_enqueued_emails.log
events-digest_emails.log
events-email_mirror.log
events-error_reports.log
events-feedback_messages.log
events-message_sender.log
events-missedmessage_mobile_notifications.log
events-missedmessage_reminders.log
events-signups.log
events-slow_queries.log
events-user-activity-interval.log
events-user-activity.log
events-user-presence.log
fts-updates.log
install.log
manage.log
queue_error
server.log
tornado.log
workers.log
[/code]

ok most of the event logs contains the following:
supervisor: couldn't chdir to /home/zulip/deployments/current/: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/zulip/deployments/current/: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/zulip/deployments/current/: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/zulip/deployments/current/: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/zulip/deployments/current/: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/zulip/deployments/current/: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/zulip/deployments/current/: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to /home/zulip/deployments/current/: ENOENT
supervisor: child process was not spawned
2015-10-21 09:34:09,766 INFO     Worker 0 connecting to queue slow_queries
2015-10-21 09:34:09,785 INFO     SimpleQueueClient connected (connecting took 0.018s)

I'm sorry. A restart of zulip make it work... this can be closed!


update dependencies per lint report

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

requirements: run: ipython>=7.19 must contain a space between the name and the pin, i.e. ipython >=7.19

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


curious if it's possible to run matoya tests in CI

curious if it's possible to run matoya tests in CI

Doesn't look like tests are running, are they supposed to before we can review?

Doesn't look like tests are running, are they supposed to before we can review?

they were running before, and they're running now

This work should IMHO be delayed until our matoya fork is merged into the Parsec repo. At that point, setting up MTY tests to run in CI should be immune to these weird CI oddities that Julien might be hinting at.
Moved label to L1 in light of this, but if you disagree, feel free to respond and bring the label back to L2.

yeah, that seems reasonable. but it's currently unclear when we're going to get to merging libmatoya into the parsec repo..


I cannot start registry in kubernetes

unable to configure authorization (htpasswd): failed to open htpasswd path open /etc/registry/.htpasswd: read-only file system
This is the logs in container
time="2024-02-09T09:11:58.479810679Z" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.20.8 instance.id=9b4df9d7-7bec-4718-802e-6c3681a54a6b service=registry version=2.8.3
2024-02-09T15:11:58.480054823+06:00 time="2024-02-09T09:11:58.479956932Z" level=info msg="redis not configured" go.version=go1.20.8 instance.id=9b4df9d7-7bec-4718-802e-6c3681a54a6b service=registry version=2.8.3
2024-02-09T15:11:58.480102126+06:00 time="2024-02-09T09:11:58.480008693Z" level=info msg="Starting upload purge in 10m0s" go.version=go1.20.8 instance.id=9b4df9d7-7bec-4718-802e-6c3681a54a6b service=registry version=2.8.3
time="2024-02-09T09:11:58.480217822Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.20.8 instance.id=9b4df9d7-7bec-4718-802e-6c3681a54a6b service=registry version=2.8.3
2024-02-09T15:11:58.482513603+06:00 panic: unable to configure authorization (htpasswd): failed to open htpasswd path open /etc/registry/.htpasswd: read-only file system
2024-02-09T15:11:58.482537000+06:00
2024-02-09T15:11:58.482545484+06:00 goroutine 1 [running]:
github.com/docker/distribution/registry/handlers.NewApp({0xf29128?, 0xc0004a5560?}, 0xc0004c6000)
2024-02-09T15:11:58.482570250+06:00 	github.com/docker/distribution/registry/handlers/app.go:314 +0x1c7a
2024-02-09T15:11:58.482589928+06:00 github.com/docker/distribution/registry.NewRegistry({0xf29128?, 0xc0004a4a20?}, 0xc0004c6000)
	github.com/docker/distribution/registry/registry.go:161 +0x145
github.com/docker/distribution/registry.glob..func1(0xc000034190?, {0xc000416f20, 0x1, 0x1})
	github.com/docker/distribution/registry/registry.go:119 +0x18f
2024-02-09T15:11:58.482642685+06:00 github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).execute(0x14ae1e0, {0xc000416ee0?, 0x2?, 0x2?})
	github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:495 +0x44f
github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).Execute(0x14ae380)
2024-02-09T15:11:58.482707644+06:00 	github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:560 +0xaa
2024-02-09T15:11:58.482713374+06:00 main.main()
	github.com/docker/distribution/cmd/registry/main.go:23 +0x25

This is the values.yaml
registry:
  enabled: true
  image: registry:2
  dataVolume:
    persistentVolumeClaim:
      claimName: 'docker-registry'
  auth:
    basic:
      enabled: true
      realm: Docker registry
      htpasswdPath: /etc/registry/.htpasswd
      secretName: 'registry-auth'
  ingress:
    enabled: true
    host: docker.pay24.asia
    tls:
      - hosts:
          - docker.pay24.asia
        secretName: tls-pay24-asia
    annotations:
      nginx.ingress.kubernetes.io/enable-cors: "true"

Same... maybe this in charts/docker-registry-ui/templates/registry-deployment.yaml
volumeMounts:
  ...
  {{- if .Values.registry.auth.basic.enabled }}
  - name: htpasswd
    mountPath: ...
    readOnly: true


Forgot tensorflow import

In the https://github.com/mkocabas/focal-loss-keras/blob/master/focal_loss.py file, you forgot to import
tensorflow: import tensorflow as tf.

u r write

u r right

https://github.com/mkocabas/focal-loss-keras/commit/c40cacff60bda15b02bd83ea3a1b2be739d56117 should solve the issue.


PTX JIT compile error?

Hello Team,
called Result::unwrap() on an Err value: DriverError(CUDA_ERROR_INVALID_PTX, "a PTX JIT compilation failed"). I have  cuda v12.1.1
GPU information below:
Wed Jul 17 11:52:35 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.15              Driver Version: 550.54.15      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA A100-PCIE-40GB          On  |   00000000:C1:00.0 Off |                    0 |
| N/A   34C    P0             43W /  250W |       0MiB /  40960MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+
the code is this:
// setup GPU device
let gpu = CudaDevice::new(0).unwrap();
// compile ptx
let ptx = Ptx::from_src(CUDA_KERNEL_MY_STRUCT);
gpu.load_ptx(
    ptx,
    "cuda_kernel",
    &["cuda_kmer_bit_pack_mmhash", "cuda_kmer_t1ha2"],
)
.unwrap();
let gpu = &gpu;

Any idea?
Thanks,
Jianshu

Will need to know what CUDA_KERNEL_MY_STRUCT is to provide help. Is it a path? Contents of a precompiled ptx?

Yes exactly, a path for ptx:
const CUDA_KERNEL_MY_STRUCT: &str = include_str!(concat!(env!("OUT_DIR"), "/cuda_kmer_hash.ptx"));
Sorry for the missing part.
Jianshu

Cool thank looks fine, it might be an issue with how the ptx is formed. What command are you using to compile it?

I would double check that your arch/code values in build.rs result in ptx that can run on your gpu. You can also manually inspect the result of the nvcc command and try to load that in to ensure it's working properly

Hi Thanks,
This is the build.rs:
extern crate bindgen;
extern crate cc;
use std::{env, path::PathBuf, process::Command};
use bindgen::CargoCallbacks;
use regex::Regex;
fn main() {
if cfg!(feature = "cuda-sketch") {
// Tell cargo to invalidate the built crate whenever files of interest changes.
println!("cargo:rerun-if-changed={}", "cuda");
    let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());

    // build the cuda kernels
    let cuda_src = PathBuf::from("src/cuda_kernel.cu");
    let ptx_file = out_dir.join("cuda_kmer_hash.ptx");

    // Specify the desired architecture version.
    // Check: https://developer.nvidia.com/cuda-gpus
    // let arch = "compute_86"; // For example, using SM 8.6 (Ampere architecture).
    // let code = "sm_86"; // For the same SM 8.6 (Ampere architecture).
    let arch = "compute_89"; // For example, using SM 8.9 (Ada Lovelace architecture).
    let code = "sm_89"; // For the same SM 8.9 (Ada Lovelace architecture).

    let nvcc_status = Command::new("nvcc")
        .arg("-ptx")
        .arg("-o")
        .arg(&ptx_file)
        .arg(&cuda_src)
        .arg(format!("-arch={}", arch))
        .arg(format!("-code={}", code))
        .status()
        .unwrap();

    assert!(
        nvcc_status.success(),
        "Failed to compile CUDA source to PTX."
    );

    // The bindgen::Builder is the main entry point
    // to bindgen, and lets you build up options for
    let bindings = bindgen::Builder::default()
        // The input header we would like to generate
        // bindings for.
        .header("src/cuda_kernel.h")
        // Tell cargo to invalidate the built crate whenever any of the
        // included header files changed.
        .parse_callbacks(Box::new(CargoCallbacks))
        // we use "no_copy" and "no_debug" here because we don't know if we can safely generate them for our structs in C code (they may contain raw pointers)
        .no_copy("*")
        .no_debug("*")
        // Finish the builder and generate the bindings.
        .generate()
        // Unwrap the Result and panic on failure.
        .expect("Unable to generate bindings");

    // we need to make modifications to the generated code
    let generated_bindings = bindings.to_string();

    // Regex to find raw pointers to float and replace them with CudaSlice<f32>
    // You can copy this regex to add/modify other types of pointers, for example "*mut i32"
    let pointer_regex = Regex::new(r"\*mut f32").unwrap();
    let modified_bindings = pointer_regex.replace_all(&generated_bindings, "CudaSlice<f32>");

    // Write the bindings to the $OUT_DIR/bindings.rs file.
    let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
    std::fs::write(out_path.join("bindings.rs"), modified_bindings.as_bytes())
        .expect("Failed to write bindings");
}

}
I am new to Cuda, not sure whether this is consistent with my A100 machine, since I know the code was only tested against RTX 4090, this could be the reason, the sm is different for different device?
Thanks,
Jianshu

It seems it is the arch and code is different.
Thanks,
Jianshu


X11 - Hint the window manager to disable desktop compositing in fullscreen mode

From https://specifications.freedesktop.org/wm-spec/latest/ar01s05.html :
"Some applications like fullscreen games might want run without the overhead of being redirected offscreen (to avoid extra copies) and thus perform better."

LGTM, @akien-mga can you maybe restart the travis job for this?

@hpvb restarted travis for this.


HTML-PDF Number of pages

Finding that even though the html output is a single page, html-pdf seems to always generate 2 pages. Have tried looking there and playing around w the pug template.

Hello @actionableinsights ,
Thanks for this issue, could you create a PR ? 🙏

would do if I could.
Perhaps it has to do with
https://github.com/marcbachmann/node-html-pdf

+1

Another issue - when output is more than 1 printable page, there is not bottom padding on the page and clients have problem printing.


Tagged Release

Can we add a tag to this repo for an initial release?

Yes, no problem.
https://github.com/mongodb-labs/elastic2-doc-manager/releases/tag/0.1.0


Squares + menu tools show wrong colour when variables are used

Menu tools and floating squares (and their rectangles) should show a colour based on whatever the brush is hovering.
Squares (and their rectangles) should show colour(s) based on their diagram/rule.

Scratch that - I tried it out and it caused too much flashing+flickering

Oo wait, squares in rules still need to show the correct colour!


[#1555] improve(UI): improve empty field

What changes were proposed in this pull request?
Before:
drawer details:

tab details:

After:
drawer details:

tab details:

Why are the changes needed?
Fix: #1555
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
N/A

@yuqi1129 @xunliu @FANNG1 what do you think of this fix? Is it good to use N/A to represent the blank value?

I'm ok to the current solution and couldn't figure out a better solution to show the empty cells. This seems a common issue in web,  @ch3yne do you know any other existing solutions?

"N/A" means "Not Applicable" and is not the best choice unless it means the field can never have a value.

@FANNG1 @justinmclean Commonly, I have often seen a dash - or the word empty in a diminished-opacity grey color to signify the absence of data.


Allowing forks to build other branches

Currently the .travis.yml looks like this:

branches:
  only:
    # Pushes and PR to the master branch.
    - master

This prevents other branches from building in CI. The way I get my other branches to build is by:

changing the travis.yml file for a branch

working on the branch in my repo

change the travis.yml file back

pull-request

Is there a way to improve this ? I basically rely on travis and the docker images for running tests on all platforms.

I think it's fine to just delete that whitelist from teh config?

I though maybe it was there for "reasons" (the comment says something about pushing to master branch). I am fine with killing it.

Closed by https://github.com/rust-lang-nursery/stdsimd/commit/077f1f7d9b8ad88e56ffe9c8d6f887a5b51b7612 .


stat does not appear to output anything when -v or -q is supplied

Steps to reproduce the issue
With any design at all, write a .ys or .tcl script that simply synthesizes (or really does anything) and runs stat at the end, to output cell information about the selected hierarchy. Next, invoke yosys with an argument like -v2, and watch how stat does nothing. Here is a sample script:
read_verilog *.v

hierarchy; proc; fsm; opt; memory; opt
techmap; opt;

stat

At the end during the STAT pass, there will be no information output at all. This is because -v implies -q at all levels, which only results in warnings or errors being output (along with the selected log level, iff -v)
Expected behavior
I would expect stat to always output information about the design, regardless of if I am executing quietly or at a particular verbosity level.
This is simply because I literally asked for the output, by inserting the command explicitly! If there is some implicit usage of stat where numbers are printed without my explicit usage -- I would like these to respect the verbosity/quiet settings, but otherwise, I think it's reasonable to respect the users request to "Print lots of output"
Actual behavior
stat returns no output in quiet mode.
Motivation
I have a .tcl script which drives yosys on a large design in order to report cell count of the final synthesis results -- but I don't care about most of the passes or their output (especially the nested logs). I only care about the stats at the end, more or less. Synthesis takes a few minutes -- thus, I would simply like to run yosys at -v1 to give a "high level overview" of where the compilation is at a glance while waiting, and still get the stats at the end. (As a happy coincidence, running at -v1 produces relatively little output to where I can also trivially see any warnings very easily; I could use -w for this, but it's just a nice side bonus of the output being way shorter!)

I am also willing to write a patch if my motivation/stance is convincing. :)

This is the intended behavior. In -v2 mode only headers of the first two "indentation levels" and warnings and errors are printed. All log messages are hidden in that mode.
Use something like tee -o /dev/stdout stat if you want to make the stat output appear on stdout.

Ah, thanks! I completely missed tee in the listing, but that's a good trick!


importing anything from @angular/router breaks EventEmitter

System
OS: Mac OSX El Capitan
Node: 6.3.0
Angular CLI: 1.0.0-beta.9
angular-router: 3.0.0-beta.2
Repro
This is a problem in an app created with the CLI.
My build compiles fine without any imports from angular-router, but if I add import {} from '@angular/router' in my code, I get the following error:
'Type EventEmitter<{}> is not assignable to type 'EventEmitter<string>'
In the constructor function I declare new EventEmitter variables like so: x: EventEmitter<string>. I instantiate the event emitter like so: x = new EventEmitter();.
This usually works fine, but when I import from angular/router it goes haywire.
Here's the code in my constructor function that causes the hangup:
x = EventEmitter<string>;
...
constructor() {
  this.x = new EventEmitter();
}

My package.json is attached

Try
this.x = new EventEmitter<string>();

p.s. I'm pretty sure this is not really an issue with angular-cli and the question should be on stack overflow or somewhere like that.

OK got it. Thanks!


Always on top border persists after the window is closed

Microsoft PowerToys version
0.72.0
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
Always on Top
Steps to reproduce
When the border around pinned window option is active and the pinned window is closed the border stays where it was and only disappears after around 30 seconds
✔ Expected Behavior
i expected the border around the window to disappear after closing it
❌ Actual Behavior
the border persisted after the window was closed
Other Software
No response

Does it happen every time?

Does it happen with every program?

What happen if you move a pinned window? Is the border moved as expected?

/bugreport


New command: spo user remove #1674

Add New Command

Adds 'spo user remove' command. Closes #1674

Coverage decreased (-0.01%) to 99.987% when pulling f1a9328d6866d61052f1b0a70863ed2e71777169 on dips365:master into 5c341eeca2300ea6ea65d732b1422ab1e22f25f0 on pnp:master.

Some checks were not successful.
It seems coverages is failed ue to below 2 lines.

Any help would be appreciated.

Thanks @dips365. We'll review it shortly 👏

The PR is now merged manually. Thank you Dipen @dips365 !

@VelinGeorgiev Thank you so much.
I am looking for more contribution to the community.
Thanks for guidance and support.


Feature/esp32 adc

This WIP PR add ADC support for ESP32 (ESP32-S2 and ESP32-C3 will be supported as well).
The ADC is supported in single-shot mode, continuous mode dma operation will be added soon.

@sylvioalves @LucasTambor PTAL


docs: improve readme accessibility

🚀 Pull Request
Description

Made some minor accessibility improvements to the README.md, including:

Prepending title emoji
Including missing alt HTML image attribute
Adding use of aria-expanded and aria-label HTML attributes (see ARIA)

Thanks so much @bjlittle!


Make ToolCache thread-safe

I'm not sure this is a good idea: even if we make everything in vcpkg.exe thread safe, the tools cache location on disk might not like this partying happening? Is there a reason we can't figure out what the tools are in advance before doing the pipelined part after parsing the cache configuration strings?

the tools cache location on disk might not like this partying happening

What do you mean by that?

We could use file locking (https://cmake.org/cmake/help/latest/command/file.html#locking) to synchronize or use different write dirs.

We could use file locking ...

And since we're written in the same language as CMake itself we can be 100% sure we're using the same locking code ;). Though I think before going further with this approach, we would really need to migrate all of the interactions with downloads/ into the vcpkg tool via x-download etc.

Is there a reason we can't figure out what the tools are in advance before doing the pipelined part after parsing the cache configuration strings?

I think this is probably the right way to go. It would be incredibly straightforward to add a virtual void IBinaryPushProvider::fetch_tools(const ToolCache&); which gets called once on the first push_success() call.

We could use file locking (https://cmake.org/cmake/help/latest/command/file.html#locking) to synchronize or use different write dirs.

Yes, but… why? Can’t we just do a pass over the configured providers just after parsing and ask them to fetch any tools or similar they need?

I think this is probably the right way to go. It would be incredibly straightforward to add a virtual void IBinaryPushProvider::fetch_tools(const ToolCache&); which gets called once on the first push_success() call.

+1
Or on the first prefetch or precheck call


Support  gh http_unix_socket configuration option

gh supports a http_unix_socket option that impacts how API requests get sent, we should take that configuration option into account up the API clients.

Express highway pe hu bhai onilel support thx<<>>>

......600<<~~}♡♤◇♧♧♧♧♧♧☆☆☆☆☆☆☆☆☆☆★☆☆☆★☆☆☆☆☆☆☆>>>>>>>>>>>>>{》》》》》》》♤♤♤♤♤♤♤♤♤♤♤♤♤♤◇◇◇◇◇♡♡♡♡♡♡♧♣♧♧¤¤¤¤¤¤¤~

Nice

Good

Network problem chhe ke a

Onilel

Code>>>>>>>>>>>
!!!!~\\\\\99.9


ci: cache pip

Also upgrade to v2 of github actions, no particular reason to do so but it does seem to work.
Reduces build time from ~5mins to 1min

cc @feng-tao; if this lgty, i'll do it for the other repos as well.
One concern I have is I can't find a way to manually bust the cache (other than making an edit to requirements.txt or setup.py; given how simple this caching is, I think that's OK


As an OHS admin, I can generate audit reports for financial data

... so that I can comply with internal audits of the Residential College.

Closing, not within any milestone.