CORS Issue when calling an endpoint in a Static Web App

I have created a simple back-office using SWA https://xxxxxxxxx.azurestaticapps.net/. The data is being used in another website in a different domain lets say https://example.ca. I'm only calling only one endpoint in the SWA from example.ca which is https://xxxxxxxxx.azurestaticapps.net/api/getData and getting the CORS error:

Access to fetch at https://xxxxxxxxx.azurestaticapps.net/api/getData from origin https://example.ca has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled

This is the js code being use to call the getData endpoint:
const apiUrl = 'https://xxxxxxxxx.azurestaticapps.net/api/getData';
fetch(apiUrl)
.then(response => response.json())
.then(data => {
   // do something
})
.catch(error => console.error('Error fetching data:', error));

My configurations:

azure-static-web-apps.yml
name: Azure Static Web Apps CI/CD

on:
  push:
    branches:
      - main
  pull_request:
    types: [opened, synchronize, reopened, closed]
    branches:
      - main

jobs:
  build_and_deploy_job:
    if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
    runs-on: ubuntu-latest
    name: Build and Deploy Job
    steps:
      - uses: actions/checkout@v3
        with:
          submodules: true
          lfs: false
      - name: Build And Deploy
        id: builddeploy
        uses: Azure/static-web-apps-deploy@v1
        with:
          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLUE_DUNE_07DCAB603 }}
          repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
          action: "upload"
          ###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
          # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
          app_location: "/" # App source code path
          api_location: "api" # Api source code path - optional
          output_location: "dist" # Built app content directory - optional
          ###### End of Repository/Build Configurations ######

  close_pull_request_job:
    if: github.event_name == 'pull_request' && github.event.action == 'closed'
    runs-on: ubuntu-latest
    name: Close Pull Request Job
    steps:
      - name: Close Pull Request
        id: closepullrequest
        uses: Azure/static-web-apps-deploy@v1
        with:
          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLUE_DUNE_07DCAB603 }}
          action: "close"

staticwebapp.config at root location
{
  "trailingSlash": "auto",
  "globalHeaders": {
    "Access-Control-Allow-Origin": "*",
    "Access-Control-Allow-Methods": "GET, OPTIONS"
  },
  "routes": [{
    "route": "/api/*",
    "headers": {
        "Access-Control-Allow-Origin": "*"
    }
  }],
  "navigationFallback": {
      "rewrite": "index.html",
      "exclude": ["/api/*", "/images/*.{png,jpg,gif}", "/css/*"]
  },

  "mimeTypes": {
      ".json": "text/json"
  }
}

Am I missing missing a certain configuration or something else?

Same issue here. I created a ticket over at DAB, but I think its rather a SWA issue. Cors setting does not seem to bite.
My ticket over there: https://github.com/Azure/data-api-builder/issues/2232

Any progress here? I want to host some config files to SWA and call from the browser from another domain, if CORS is a problem, I have to change my plan.

Seeing the same. It seems like the CORS headers prevent the request from going through to my distributed SWA Functions. This is blocking me from using SWA, would love a fix.


Add RSP DMA control regs to rsp.h

I am not sure about the whitespace (indentation, newlines), feel free to tell me.
I think there should be longer comments and additional macros to work with these regs, but that would be a lot to improve with the other regs too. And maybe "look at the wiki" is good enough

Reminder for myself to also fix the comment on the spwrintrbrk macro while I'm at it


HDDS-8965. Stream multi part upload support on gateway

What changes were proposed in this pull request?
Stream multi part upload support on gateway
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8965
How was this patch tested?
ut

<property>
    <name>dfs.container.ratis.datastream.enabled</name>
    <value>true</value>
  </property>

Change the configuration to enable, because the pipeline created by scm will not enable the datastream port if it is not enabled

<property>
    <name>dfs.container.ratis.datastream.enabled</name>
    <value>true</value>
  </property>

Change the configuration to enable, because the pipeline created by scm will not enable the datastream port if it is not enabled

I don't think the default setting should be changed for this.  S3 Gateway should be able to handle both settings.  Changing the default might just hide some issues.

The default scm creates a pipeline, and if this configuration is false, it will not specify the correct stream port, causing the gateway to connect to the wrong stream port on the pipeline, and the communication will be abnormal.
@adoroszlai @szetszwo  Should I first change the configuration of the stream port when creating the pipeline.

I don't think the default setting should be changed for this. S3 Gateway should be able to handle both settings. Changing the default might just hide some issues.

The default scm creates a pipeline, and if this configuration is false, it will not specify the correct stream port, causing the gateway to connect to the wrong stream port on the pipeline, and the communication will be abnormal.
@adoroszlai @szetszwo Should I first change the configuration of the stream port when creating the pipeline.

Hi @guohao-rosicky, thank you for working on this. I'm interested in this feature as well.

The default scm creates a pipeline, and if this configuration is false, it will not specify the correct stream port, causing the gateway to connect to the wrong stream port on the pipeline, and the communication will be abnormal.

Could you help clarify what do you mean by this (e.g. which class/implementation has this behavior)?

The client needs to access the port of the stream service when communicating with the stream server.
This port is provided in the DatanodeDetails provided by the datanode report. If the stream service is not enabled on the datanode, there will be no stream port in the DatanodeDetails.
See:
org.apache.hadoop.ozone.container.common.transport.server.ratis.XceiverServerRatis#start
https://github.com/apache/ozone/blob/master/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/XceiverServerRatis.java#L530
The stream port has a default value that is incorrect when a client connects to the stream server.
See:
org.apache.hadoop.hdds.protocol.DatanodeDetails#getPort
https://github.com/apache/ozone/blob/master/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/protocol/DatanodeDetails.java#L319

The CI passed, PTAL @szetszwo thanks.

If stream is used in the test, is it enough to change it in the config file?
hadoop-ozone/integration-test/src/test/resources/ozone-site.xml

That file contains settings applied to all integration tests (tests in hadoop-ozone/integration-test).  There are similar files for tests in some other modules:
hadoop-hdds/framework/src/test/resources/ozone-site.xml
hadoop-hdds/container-service/src/test/resources/ozone-site.xml

You can also apply specific settings in any test class by making the config changes before the test, e.g.:
https://github.com/apache/ozone/blob/e6028b79ec7224c935b2e2219606e6b3d870c5df/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestListStatus.java#L68-L75
S3 Gateway is not created in MiniOzoneCluster, hence not tested in integration tests.  It can be tested end-to-end in acceptance tests.

Thanks @adoroszlai , as you said, I modified the hadoop-ozone/integration-test/src/test/resources/ozone-site.xml
and changed the default configuration(ozone-default.xml) back and the CI has been passed .

Thanks @guohao-rosicky.  If I understand correctly, only TestPartUploadWithStream requires datastream to be enabled.  It sets the config in its @BeforeClass method.  Since it is not an integration test, the change in hadoop-ozone/integration-test/src/test/resources/ozone-site.xml does not affect it and is not required.

TestPartUploadWithStream requires datastream to be enabled. It sets the config in its @BeforeClass method.

Thanks @adoroszlai Let me change it and try it.

@guohao-rosicky Thank you for the detailed explanation.

The stream port has a default value that is incorrect when a client connects to the stream server.

Regarding this, is it possible to return the default port values (e.g. DFS_CONTAINER_RATIS_DATASTREAM_PORT_DEFAULT) instead of returning the RATIS portDetails?

... Let me change it and try it.

@guohao-rosicky , Are you going to try enabling streaming using @BeforeClass?

hi @szetszwo . It has been modified and the ci has been passed, can you review it for me, thanks!
see:
https://github.com/guohao-rosicky/ozone/actions/runs/5550287644


Recent commit to the ports tree

I talked to a FreeBSD ports management team member and he commited a quick port.
on FreshPorts: https://www.freshports.org/net-im/chatterino2/
Note that issues during the build in the ports tree should not be reported to the Github issue tracker but rather to the FreeBSD issue tracker.
It can be installed by either:
# cd /usr/ports/net-im/chatterino2/ && make install clean
or
# pkg install chatterino2
I don't know where to add a note for that here, that's why I opened this issue.

I will add this to the chatterino website shortly.

Sounds good to me! :+1:

added here https://chatterino.com/freebsd and linked on https://chatterino.com/


When adding more commits to a PR labeling is not correct

Description
When adding more commits to a PR the label action for using label small, medium etc. is not removing the old label if the state changes from for example small to medium.
Screenshots
No response
Additional information
No response

In the label-pull-request-with-size section of reviewpad.yml the actions need to be modified to remove labels.
There is an example in the Reviewpad removeLavels documentation.

Hey . I would like to work on this issue :)

Hey ,
I would like to work on this issue if it is not resolved yet :)

@Harsh-Daga go for it

Hey, I was looking at the open issues and noticed that this issue has been resolved by PR #2230. I think this can be closed now.


Examples needed

some example will help newcomers start with the sdk,
don't need a lot to start with

Completely agreed.  It's on the backlog.  Care to write or contribute here?

Would love but I am not very versed on python.
It is much easier for me to review python code than write some.

Some examples have been provided (thank you @brbester !).

Potential Contributors:  Feel free to submit a pull request if you have examples you would like to share.  Note that the package now supports Python v2 and v3.  It is preferred if your example scripts support both as well.  -Thank you!


Fix clean-sidebar on sidebar updates

Using the new onUpdatableContentUpdate by @fregante.
Closes #2333.
Test
On a discussion where you have access to assign things on the sidebar (label, milestone, etc.), make a change - after the "partial" content is updated, the sidebar is cleaned.

Excellent! Now I wonder if onUpdatableContentUpdate should accept a selector instead. Perhaps HTMLElement | string like many other of our helper functions do (e.g. observeEl)
Also will you look into parse-backticks in the header or should I send a PR?

Not today.
I think you mean https://github.com/sindresorhus/refined-github/blob/master/source/features/format-discussion-titles.tsx?


Don't Merge! PR real time test for source branch full build

Docs Build status updates of commit 37589a8:
:clock10: Pending: waiting for processors (39 builds ahead of you)
:warning: Docs Build is busy, currently there are 39 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 37589a8:
:clock10: Full build: the average full build time is 7 min(s) 36 sec(s), this is based on the last 30 build(s) for this repository.

Docs Build status updates of commit 37589a8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


fix: SDA-1859 (Update the config logic & Hide menu items instead of disabling it)

Description
Update the config logic & Hide menu items instead of disabling it
SDA-1859
Solution Approach

Update the default config to fetch form the global config file for fresh users
Hide menu items instead of disabling it

Related PRs
List related PRs against other branches/repositories:

branch
PR

SymphonyElectron
6.1.x

@KiranNiranjan Please rebase.


added OpenAcademicResearch as a category, and some examples

moved SSRN from blogs to open academic research

Thank you very much for your contribution, but in the future please be more cognizant of Github markdown. Links need to be formatted with square brackets around the name you want to appear and parentheticals around the actual hyperlink.

ugh!  sorry about that -- I know better


Use DialContext instead of plain Dial

Description:
This PR makes the Chrony receiver obey the scraping timeout more strictly.
It does this by utilising net.Dialer.DialContext() instead of just net.Dial()
Testing:
Two tests were added. They test whether the timeout is exceeded when dialling takes too long.
Documentation:
No documentation change required.

A potential concern is my tests aren’t actually testing that net.Dialer.DialContext() is doing what I expect it to in relation to the timeouts. I’m not really sure if that’s out of scope / too difficult to test though.
I'd appreciate your thoughts on that front!

@MovieStoreGuy please could you open an issue on upstream so that I can reference it in the changelog?

A potential concern is my tests aren’t actually testing that net.Dialer.DialContext() is doing what I expect it to in relation to the timeouts. I’m not really sure if that’s out of scope / too difficult to test though.

Sorry, been absent minded on other things...
What I can suggest is that you provide a cancelled context so that it can't progress since providing a context and trying to cancel it while it is mid request is a timing nightmare.
You'll need to do this outside the table testing.


Slackbot doesn't recognize another bot text.

Slackbot is set a word.
example...
@listen_to('hoge')
Another bot writes 'hoge', but slackbot silence.
Please Tell me how to slackbot react another bot.

@hujuu was your slackbot invited to the same channel?

Hi. I am trying to to that right now, and its not working.
I created a SlackBot, and another SlackApp to make use of IncomingWebhooks.
Then, my slack bot is listening, but it only replies to me, not to the SlackApp. In fact, the message isnt even triggered on my code. Cant tell if it actually cannot be achieved (which is odd), or if SlackBot core is filtering it.

On console, there is only one message...

Both bots are on the channel:

Any idea?

Its being filtered... not dispatched.
Sent via WebHook, I got this on _on_new_message:
{u'text': u'<@UXXXXXXXX>: Ol\xe1!', u'ts': u'1491565958.545033', u'user': u'UYYYYYYYY', u'reply_to': 0, u'type': u'message', u'channel': u'CXXXXXXXX'} {u'event_ts': u'1491566793.675882', u'text': u'<@yasmin> oi', u'ts': u'1491566793.675882', u'subtype': u'bot_message', u'team': u'TXXXXXXXX', u'type': u'message', u'channel': u'CXXXXXXXX', u'bot_id': u'BXXXXXXXX'}
And then via me saying "hi":
{u'source_team': u'TXXXXXXXX', u'text': u'<@UXXXXXXXX> oi', u'ts': u'1491566824.680886', u'user': u'UYYYYYYYY', u'team': u'TXXXXXXXX', u'type': u'message', u'channel': u'CXXXXXXXX'} <slackbot.dispatcher.Message object at 0x7f5d2da6d510>

I sort of figured it out... Made some changes on core code to test.

You cannot reply to a bot user_code as a user... Slack does this:

But to make it actualy work, I did:
       except (KeyError, TypeError):             if 'username' in msg:                 username = msg['username']             if 'bot_id' in msg:                 username = msg['bot_id']
   def _get_user_id(self):         if 'user' in self._body:             return self._body['user']         if 'bot_id' in self._body:             return self._body['bot_id']
    @unicode_compact     def _gen_at_message(self, text):         id = self._get_user_id()         if id[0] == 'B':             text = u'{}'.format(text)         else:             text = u'<@{}>: {}'.format(id, text)         return text
It kind of solves my problem, but its not a good implementation to be merged.
I dont know if it has some side-effects yet.
Hope this helps someone.

There's two ways for bots to send messages. The message-with-bot-id is for messages sent by RTM-based bots. Messages sent from other integrations get a different message subtype, bot_message. In general though, this behavior is undesirable - you don't want bots to reply to other bots so feedback loops are avoided 😄 It might make an interesting feature toggle though.


TypeError: call() missing 1 required positional argument: 'input'

Thanks for your error report and we appreciate it a lot.
Checklist

I have searched the tutorial on modelscope  doc-site
I have searched related issues but cannot get the expected help.
The bug has not been fixed in the latest version.

Describe the bug
A clear and concise description of what the bug is.
一个脚本不能加载多个pipeline模型。
Traceback (most recent call last):
File "textImageSearch.py", line 33, in
pipeline_large = pipeline(task=Tasks.multi_modal_embedding,model='damo/multi-modal_clip-vit-large-patch14_zh', model_revision='v1.0.1')
TypeError: call() missing 1 required positional argument: 'input'
To Reproduce

What command or script did you run?

A placeholder for the command.

Did you make any modifications on the code or config? Did you understand what you have modified?
What dataset did you use?

import torch
from modelscope.utils.constant import Tasks
from modelscope.pipelines import pipeline
from modelscope.preprocessors.image import load_image
pipeline = pipeline(task=Tasks.multi_modal_embedding,model='damo/multi-modal_clip-vit-base-patch16_zh', model_revision='v1.0.1')
pipeline_large = pipeline(task=Tasks.multi_modal_embedding,model='damo/multi-modal_clip-vit-large-patch14_zh', model_revision='v1.0.1')
Your Environments (required)

OS: uname -a
Linux ecs-97b3-0001 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
CPU: lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                32
On-line CPU(s) list:   0-31
Thread(s) per core:    2
Core(s) per socket:    16
座：                 1
NUMA 节点：         1
厂商 ID：           GenuineIntel
CPU 系列：          6
型号：              85
型号名称：        Intel(R) Xeon(R) Gold 6278C CPU @ 2.60GHz
步进：              7
CPU MHz：             2600.000
BogoMIPS：            5200.00
超管理器厂商：  KVM
虚拟化类型：     完全
L1d 缓存：          32K
L1i 缓存：          32K
L2 缓存：           1024K
L3 缓存：           36608K
NUMA 节点0 CPU：    0-31
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd rsb_ctxsw ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 arat avx512_vnni md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities
Commit id (e.g. a3ffc7d8)
do not know, but have
Name: modelscope
Version: 1.18.0
Summary: ModelScope: bring the notion of Model-as-a-Service to life.
Home-page: https://github.com/modelscope/modelscope
Author: ModelScope team
Author-email<EMAIL_ADDRESS>License: Apache License 2.0
Location: /data/anaconda3/envs/tex/lib/python3.8/site-packages
Requires: requests, tqdm, urllib3
Required-by: adaseq
You may add addition that may be helpful for locating the problem, such as

How you installed PyTorch [e.g., pip, conda, source]
Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)
pip 安装
Name: torch
Version: 1.13.1
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email<EMAIL_ADDRESS>License: BSD-3
Location: /data/anaconda3/envs/texte/lib/python3.8/site-packages
Requires: typing_extensions

Please @ corresponding people according to your problem:
Model related:  @tastelikefeet
Model hub related: @liuyhwangyh @tastelikefeet @wangxingjun778
Pipeline related: @tastelikefeet @wangxingjun778

got success


Menu: Icons to identify the floors

I picked a bunch of random icons from Material, but we might want to have better ones.
https://material.io/tools/icons/?style=outline

We have icons.


Ros2 Rolling has a breaking Pose2D msgs

Im so confused.
I just upgraded to ros2 rolling on a machine and my Pose2D msgs is different from galactic. The reason why I am opening this here is that according to the path, the Pose2D reference is on vison_msgs not in geometry_msgs
New:
`class Pose2D(metaclass=Metaclass_Pose2D):
    """Message class 'Pose2D'."""

    __slots__ = [
        '_position',
        '_theta',
    ]

    _fields_and_field_types = {
        'position': 'vision_msgs/Point2D',
        'theta': 'double',
    }

As you can see this class has a position element which wraps x,y. These two values are supposed to be inline? Where does this come from. I cant see the change in the Humble branch?

We did indeed add a new Pose2D message to this project starting in v4.0.0 which should be in Humble and Rolling (I checked too, it is released to both, but I can't speak if its been synced yet).
We did this based on feedback of abuse of that message time and because the plan is to deprecate the geometry_msgs version of it. While it is API the same, yes, it is in a new location so from a code auto-gen perspective, there is a change

I see, so this is intended and known that this breaks interfaces to galactic?

Yeah

Alright. I just have to have strange catches in our code while we migrate to rolling/humble. Thanks!


File tree expands too much 😄

Original: https://github.com/Digitalbrainstem/ejs-grammar/issues/89
Steps to reproduce:
Used in example image:
<% authorized = authorized ? true : false; %>
<% if (authorized) { %>
    <% let originalSelector = selector; %>
    <% selector = { type: 'undefined' }; %>
    <% selector = originalSelector; %>
<% } %>
<html>
</html>

Expected result:

Question
Can be tags:

contianing no '{' '}' or pair of them marked as single line tags like <br>
matching <% .* { %> as open tags
matching <% } %> as close tags

I may be helpfull for closing of parent elements.

Do you know how to force this within a language grammar? There were a few pull requests I just pulled in. See if those fixes this, I don't think it would though.


Bug: "Doom hasn't been initialized yet"

All I did was run this command on macOS ventura \w Macbook Pro M1
nix run github:nix-community/nix-doom-emacs

the command has zero STDOUT and STDERR, successfully launched emacs, but emacs appeared 'stock', and has these errors
Warning (initialization): An error occurred while loading ‘/nix/store/gq5zh1fzib4kvfil8rk8a4x39r0lyfq7-emacs-28.2/lib/emacs/28.2/native-lisp/28.2-d7595b2e/warnings-28e75f4d-870b026e.eln’:

Doom hasn't been initialized yet; did you remember to run 'doom sync' in the shell<EMAIL_ADDRESS>
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace. Disable showing Disable logging

<EMAIL_ADDRESS>feels pretty remarkable, maybe @thiagokokada but generally we are not very equipped for the surprisingly high constant maintenance load that comes with following Doom upstream — we're still stuck on an old version: https://github.com/nix-community/nix-doom-emacs/pull/316. #353 details how to fix this but no one has successfully put in the investment yet. (I did try, a while ago, with less knowledge about Emacs and related things; ended up with frustration and big piles of half-working unmaintainable Elisp and very long weird shell invocations…)

My openSUSE Tumbleweed laptop doesn't have this issue, though.


spherov2.controls.PacketDecodingException: Bad response checksum when connecting to multiple Spheros

I'm trying to connect to multiple Sphero Bolts at once but when I get to around 3 connections sometimes I'll get the following error
spherov2.controls.PacketDecodingException: Bad response checksum

I modified v2.py to log the unescaped packet that didn't have the correct checksum
Sphero 1:
0x8d 0x30 0x11 0x2 0x18 0x2 0xff 0x3f 0x7f 0xf3 0x84 0x3c 0x28 0xcf 0xc2 0x3c 0x87 0xcb 0xf5 0x38 0x5f 0xd 0xfc 0x3f 0x97 0x23 0x72 0x3f 0xf3 0x26 0x3a 0xbb 0xc7 0xba 0x18 0x3c 0xff 0xdf 0x38 0xbc 0x6a 0xd5 0x56 0x3f 0x7e 0x5d 0xb8 0x8d 0x30 0x11 0x2 0x18 0x2 0xff 0x3f 0x7f 0xf3 0x8f 0x3c 0x26 0x36 0xdf 0x3c 0x88 0x46 0x62 0x38 0x69 0x11 0xb9 0x3f 0x94 0xcf 0xf8 0x3f 0xf4 0x1 0x9e 0xbb 0xd0 0xb1 0xab 0x23 0x3c 0xff 0x13 0x60 0xbc 0xb5 0x98 0x98 0x3f 0x7e 0x5e 0x4c 0x3f 0x7e 0x8e 0x75 0xb6 0x98 0x56 0xfd 0xb8 0x2d 0x1a 0xfd 0xb6 0x8f 0x38 0x75 0xb7 0x85 0x64 0x50 0x41 0xde 0xbc 0xb1 0x3c 0xca 0xae 0x24 0xbe 0xb3 0x22 0x36 0x0 0x0 0x0 0x0 0x43 0xbd 0xcf 0x5c 0x75 0xd8

Sphero 2:
0x8d 0x30 0x11 0x2 0x18 0x2 0xff 0x3f 0x7f 0xc3 0x25 0x3d 0x6 0x18 0xd0 0xbc 0xe5 0x73 0x85 0xb8 0x2a 0x12 0x8d 0x30 0x11 0x2 0x18 0x2 0xff 0x3f 0x7f 0xc2 0xe9 0x3d 0x6 0xd5 0x43 0xbc 0xe4 0xc6 0xb9 0xb8 0xc 0xa 0x3 0x40 0x71 0x8c 0x74 0xc0 0x4c 0xbc 0x13 0x3b 0x7a 0xf9 0x23 0xbd 0x4d 0x7a 0xdd 0xbd 0x8b 0x7a 0x68 0x3f 0x80 0x5 0x2d 0x3f 0x80 0x7a 0x2c 0x36 0xb6 0x59 0x20 0x39 0x5 0xe0 0x32 0x37 0xc 0xd9 0x11 0xb7 0x87 0xd 0x55 0x41 0xba 0x97 0xa7 0x3c 0xc8 0xb8 0xb4 0x3e 0x58 0x6d 0x91 0x0 0x0 0x0 0x0 0x43 0x9c 0x18 0x0 0xfb 0xd8

Sphero 3:
0x8d 0x30 0x11 0x2 0x18 0x2 0xff 0x3f 0x7f 0xd0 0x2d 0x3d 0x1b 0xeb 0x8c 0xbb 0x4d 0x57 0x17 0xb9 0x45 0xc3 0x93 0x40 0x8b 0x9e 0x83 0xbe 0xb8 0x1e 0x4d 0x3c 0xb1 0x2d 0x42 0xbb 0xb4 0x54 0x9c 0xbd 0x99 0x7e 0x72 0x3f 0x7f 0xc8 0xfb 0x8d 0x30 0x11 0x2 0x18 0x2 0xff 0x3f 0x7f 0xcf 0xdc 0x3d 0x1c 0x77 0xd1 0xbb 0x48 0x8b 0x6b 0xb9 0x4c 0x79 0xde 0x40 0x8c 0x1c 0x29 0xbe 0xb3 0xd7 0xd9 0x3c 0xb7 0x30 0xe6 0xbb 0xb4 0x75 0x53 0xbd 0x99 0x79 0xc 0x3f 0x7e 0xc7 0xe5 0x3f 0x7f 0x81 0x86 0xb5 0xdb 0xb2 0xe9 0x36 0x34 0x2f 0xad 0xb6 0xb 0x58 0x91 0x38 0x30 0xf2 0xaa 0x41 0x50 0x84 0xb5 0xbd 0x87 0x97 0xaf 0xbd 0x2e 0x69 0x9d 0x0 0x0 0x0 0x0 0x42 0xea 0xc3 0xd6 0xa0 0xd8

Looking through the packets each has a SOP byte after the initial SOP byte which is why I assume the checksum is failing

I had Wireshark opened at the same time and it looks like some packets are being dropped. Attached is a file with the faulty packets for Sphero 1. What's wrong is that it's a mash of two different Sphero commands with some bluetooth packets just being dropped.
faulty_packets.pcapng.zip

appreciate the investigation. i'll look into it as well once i came back from vacation.

Just to link things together, I found that the DBUS API is not sending the packets to Bleak – here's the issue on the Bleak repo: https://github.com/hbldh/bleak/issues/1343

Ok it looks like it's a BlueZ issue, I tried using AcquireNotify instead of StartNotify and it also gives the error (with even less ~5 instead of ~12) simultaneous connections. Issue at: https://github.com/bluez/bluez/issues/539


Install problem

Dear
I install all package and run the flow code:
from graphein.construct_graphs import ProteinGraph
from vmd import *
pg = ProteinGraph(granularity='CA', insertions=False, keep_hets=True,
node_featuriser='meiler', get_contacts_path='./getcontacts',
pdb_dir='examples/pdbs/',
contacts_dir='examples/contacts/',
exclude_waters=True, covalent_bonds=False, include_ss=True)
graph = pg.dgl_graph_from_pdb_code('3eiy', chain_selection='all')
graph = pg.dgl_graph_from_pdb_file(file_path='examples/pdbs/pdb3eiy.pdb', contact_file='examples/contacts/3eiy_contacts.tsv', chain_selection='all')
graph = pg._make_atom_graph(pdb_code='3eiy', graph_type='bigraph')
and I got these errors:
Traceback (most recent call last):
File "./getcontacts/get_static_contacts.py", line 93, in
main()
File "./getcontacts/get_static_contacts.py", line 80, in main
ligand, solv, lipid, sele1, sele2)
File "/home/jojo/PycharmProjects/PPI/getcontacts/contact_calc/compute_contacts.py", line 274, in compute_contacts
output_fd = open(output, "w")
FileNotFoundError: [Errno 2] No such file or directory: 'examples/contacts/3eiy_contacts.tsv'
seems it couldn't computer contacts
Could you please help me fix it?

The missing file, examples/contacts/3eiy_contacts.tsv, seems to exist on the packaging branch. You could checkout that branch to resolve your problem or you could checkout that specific file.


Randomly generated mobs

the world is randomly generated, so it would make sense that mobs would be too, right? It's been done for many other games, so getting it done when the mobs are entirely composed of cubes shouldn't be too hard. Also, this is easier than adding hundreds of hand made mobs, and more interesting

This is implemented, thanks for bringing this up


Line breaks on the napari hub different to github

Discussed in https://github.com/chanzuckerberg/napari-hub/discussions/378

Originally posted by haesleinhuepf January  4, 2022
Hi all,
I just noticed that napari hub plugin pages deal with line breaks (between badges) differently compared to github. The layout does not look good on the hub:
https://www.napari-hub.org/plugins/napari-skimage-regionprops

https://github.com/haesleinhuepf/napari-skimage-regionprops

Also line breaks within markdown text shows on the hub like this:

and on github like that:

Is this something we plugin developers should deal with or can this be fixed on hub side?
Thanks!
Best,
Robert

This is a bug b/c the markdown spec indicates that line breaks in the source should not translate into line breaks in the HTML:

A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines. (A blank line is any line that looks like a blank line — a line containing nothing but spaces or tabs is considered blank.) Normal paragraphs should not be indented with spaces or tabs.
The implication of the “one or more consecutive lines of text” rule is that Markdown supports “hard-wrapped” text paragraphs. This differs significantly from most other text-to-HTML formatters (including Movable Type’s “Convert Line Breaks” option) which translate every line break character in a paragraph into a  tag.

https://daringfireball.net/projects/markdown/syntax#p

after a dive with @liaprins-czi @kne42 & @codemonkey800, there's something else going on here... there are other plugins that use line breaks that aren't having this problem.
need to investigate the README more closely... maybe there are trailing white space? or carriage returns?

however if we want to be consistent with github, may need to investigate further how to support READMEs like this


Using hash tables and hash maps in python

Proposed title of article
[Languages] Using hash tables and hash maps in python
Proposed article introduction
An example of a dataset that uses a key-value pair to store data is a hash table. A hash function generates a unique key for each value. In spite of the large number of values in the hash table, the unique key helps retrieving the data in the hash table faster. The dictionary is used to implement the hash table in python, which stores data in key-value pairs. A hashing method is used by Python to produce the keys of a dictionary. If you like, you may rearrange the dictionary's keys in any way you see fit.
Key takeaways
By the end of this tutorial, the learner will be able to understand:

What is hash table or hash map concept in python
Hash tables vs hash map
How to design and compile dictionaries
What converged dictionaries entails
Hash tables utilization using dictionaries

Article quality
There will be an in-depth coverage of this concept as the reader has to understand that Hash Tables are important implementations in storing and accessing data. The goal is to make it as easy and interesting in a manner in which it will favour beginners making it beginner-friendly and also enhance understanding. I will provide screenshots and examples where relevant. The reader will appreciate being subjected to how to make a dataframe out of a dictionary.
References
N/A

Thank you for your response and we thank you for submitting your topic. After some careful consideration it struck us that this topic may be a bit over saturated throughout other blog sites and official documentations as previously mentioned on your topic form by our content moderator.
We typically refrain from publishing content that is covered widely on the net or other blogs. As we're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
We believe this is the best way for students to build a great portfolio (for potential employers) is by building what does not exist and what can provide the most value.
You are more than welcome to pursue another more in depth topic


Location Widget: Update map to ensure centred in middle

Please replace the following example with your own content.
Consider change map to ESRI javascript api, look at MJ map on YHSI site (if simple fix, otherwise stay with leaflet)

When a user keys in/updates the lat/long ensure that the map get's centred on the new point


Bump up etcdadm-controller version

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/woof

/approve

/approve


Search emails

Internal support for doing a search and sending emails for updated content.
We still need to track modification dates for content.
@xybrnet

:+1:


Duplicate Env Keys

This Defect to address duplicate env keys
Shuping [1:20 AM]
@Theresa Stewart, we are trying to run image 0.13.0 and as the https://drillflow.readthedocs.io/en/latest/integration/dot/envvars.html does not have the documentation for log related env settings, so I refer to https://github.com/hashmapinc/Drillflow/blob/master/df-server/src/main/resources/application.yml and have found below - there are 2 occurrences of  duplicated environment keys which results in no way to inject log.channel.path and log.channels.data.path.  BTW, is the /:mnemonic one correct in injection? should we keep the same style when injecting?
   log.channelset.path: ${*LOG_PATH*:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channelSets}
   log.channel.path: ${*LOG_PATH*:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channels}
   log.channelset.metadata.path: ${LOG_CHANNELSET_METADATA:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channelSets}
   log.channelset.uuid.path: ${LOG_CHANNELSET_UUID:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/identities}
   log.channels.path: ${*LOG_CHANNELS*:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channels/metadata}
   log.channels.data.path: ${*LOG_CHANNELS*:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channels/data}
   log.mnemonic.data.path: ${LOG_MNEMONIC:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channels/:mnemonic}
   log.channel.depthData.path: ${LOG_DEPTHDATA:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/channels/depthdata}
   log.channel.timeData.path: ${LOG_TIMEDATA:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/channels/timedata}
   log.channelset.search: ${LOG_SEARCH:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channelSets} (edited)

EPIC:
#361 Log CRUD Implementation

Duplicate Env Key fixed and deployed.
    log.channelset.path: ${LOG_PATH:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channelSets}
    log.channel.path: ${LOG_PATH:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channels}
    log.channelset.uuid.path: ${LOG_CHANNELSET_UUID:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/identities}
    log.channels.path: ${LOG_CHANNELS:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channels/metadata}
    log.channels.data.path: ${LOG_CHANNELS:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channels/data}
    log.mnemonic.data.path: ${LOG_MNEMONIC:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/witsml/channels/:mnemonic}
    log.channel.depthData.path: ${LOG_DEPTHDATA:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/channels/depthdata}
    log.channel.timeData.path: ${LOG_TIMEDATA:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/channels/timedata}
    log.channel.depthBoundaryData.path: ${LOG_DEPTH_BOUNDARY_DATA:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/channels/depthboundary}
    log.channel.timeBoundaryData.path: ${LOG_TIME_BOUNDARY_DATA:https://api-demo.nam.drillops.slb.com/democore/channelreader/v4/channels/timeboundary}


Stop split from splitting too far

Prevent splits from going down to bare items like strings

This has been implemented but needs reworking for the changes in 1.0.0.  The function split_is_too_fine has been disabled as have the corresponding tests.  It may be part of more extensive changes to element paths.

Draft PR submitted.

This was also closed by issue #626 - which has been merged.


Buffer Frame Sizes

Much more minimal PR than what I suggested previously. This just adds the buffer frame size functions and removes the summed latency calculations I suggested before. I've moved that code into my own stuff, so this isn't very invasive to the framework.

Thanks @ryanfrancesconi!


🐛 [Tandoor] config.yaml ENV var overrides not working

Description
Following the instructions from the wiki - I haven't been able to get config.yaml overrides working with Tandoor.
Based on the addon logs - and the template file that gets created - it should be located here: /config/addons_config/tandoor-recipes/config.yaml
I'm not sure if it is related, but the rest of the Tandoor config files are located in /config/addons_config/tandoor_recipes/ - note the difference in naming - tandoor-recipes vs. tandoor_recipes
Please note that if the ENV vars were working/available, this would be an alternate means of using GUNICORN_MEDIA as mentioned in this issue
Reproduction steps
1. Populate `/config/addons_config/tandoor-recipes/config.yaml` with ENV vars
2. Restart Tandoor addon
3. Observe ENV vars have no affect on addon

Addon Logs
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config.yaml directory

Load environment variables from /config/addons_config/tandoor-recipes/config.yaml if existing
If accessing the file with filebrowser it should be mapped to /homeassistant/addons_config/tandoor-recipes/config.yaml
---------------------------------------------------------
Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables

Architecture
amd64
OS
HAos

Hi, currently "GUNICORN_MEDIA": "1" is defined from the global environment variables. It should indeed be overwritten by the config.yaml env variables - I do see the discrepancy in the folders name but it's likely because when I initially set up the addon I was using a manual folder and am now using an automatic naming for the config.yaml script... I'll solve that one day
Have you tried setting an other variable (such as TANDOOR_PORT) to make the addon fail on purpose and check if the variable is passed ?

I tested with TANDOOR_PORT=9999 and confirmed that the addon was unaffected - the web UI was still accessible, as usual.

Hi, you need to use a yaml format. I tried with TANDOOR_PORT: 9999 and it worked and the new port was shown in the log

Well - this is embarrassing - great catch! After fixing the YAML syntax, all is well. I can also confirm that I was successfully able to set GUNICORN_MEDIA: 0. Combined with configuring nginx correctly, Tandoor is no longer complaining about 'Media Serving' in the System settings. Thanks for all your help!

Hi great! Is it something that can be implemented by default in the addon or must be customized for each system? Thanks!

A lot of it may be irrelevant - I think the important part is the location /media/ block:
server {
  server_name recipes.fake.com;

  client_max_body_size 128M;

  listen 443 ssl http2;
  allow  <IP_ADDRESS>/24;
  deny   all;
  add_header Strict-Transport-Security "max-age=31536000" always;

  proxy_buffering off;

  location / {
    proxy_pass http://<IP_ADDRESS>:8080/;
    proxy_set_header Host $host;
    proxy_redirect http:// https://;
    proxy_http_version 1.1;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
  }

  location /media/ {
    alias /mediafiles/;
    client_max_body_size 16M;
  }
}


 don't work properly with next.js app folder

Hello and thanks for an amazing project ;)
I discovered that the GlobalStyles component's current implementation doesn't work with the next.js app folder.
I've created a reproduction case here: https://codesandbox.io/p/sandbox/nifty-glitter-hvkpmw
The styles get added, but they are not updated when the styles parameter changes.
In the current example, when the dark mode switch is activated, the new styles are added, but the original ones stay in the head list and as a result the dark mode doesn't work :)
The "magic" button removes the block with the global css. But, as this block also contains non-global css for the primary text, when we click the button. those styles are being lost.

Hello @yhaskell,
I appreciate your diligent investigation into this significant bug that was previously unbeknownst to me. Your provision of the reproduction repository was particularly helpful.
While I could attempt a quick fix from TSS, the optimal resolution would entail rectifying the root cause directly within the emotion repository.
To facilitate this, could I kindly ask you to revise your repository to exclusively utilize @emotion/react? You can simply replace the existing code with the following:
NextAppDirEmotionCacheProvider.tsx
"use client";

import React from "react";
import createCache from "@emotion/cache";
import { useServerInsertedHTML } from "next/navigation";
import { useState } from "react";
import { CacheProvider as DefaultCacheProvider } from "@emotion/react";
import type { Options as OptionsOfCreateCache } from "@emotion/cache";
import type { EmotionCache } from "@emotion/cache";
import type { ReactNode } from "react";

export type NextAppDirEmotionCacheProviderProps = {
    /** This is the options passed to createCache() from 'import createCache from "@emotion/cache"' */
    options: Omit<OptionsOfCreateCache, "insertionPoint">;
    /** By default <CacheProvider /> from 'import { CacheProvider } from "@emotion/react"' */
    CacheProvider?: (props: {
        value: EmotionCache;
        children: ReactNode;
    }) => JSX.Element | null;
    children: ReactNode;
};

export function NextAppDirEmotionCacheProvider(
    props: NextAppDirEmotionCacheProviderProps
) {
    const { options, CacheProvider = DefaultCacheProvider, children } = props;

    const [{ cache, flush }] = useState(() => {
        const cache = createCache(options);
        cache.compat = true;
        const prevInsert = cache.insert;
        let inserted: string[] = [];
        cache.insert = (...args) => {
            const serialized = args[1];
            if (cache.inserted[serialized.name] === undefined) {
                inserted.push(serialized.name);
            }
            return prevInsert(...args);
        };
        const flush = () => {
            const prevInserted = inserted;
            inserted = [];
            return prevInserted;
        };
        return { cache, flush };
    });

    useServerInsertedHTML(() => {
        const names = flush();
        if (names.length === 0) return null;
        let styles = "";
        for (const name of names) {
            styles += cache.inserted[name];
        }
        return (
            <style
                key={cache.key}
                data-emotion={`${cache.key} ${names.join(" ")}`}
                dangerouslySetInnerHTML={{
                    "__html": styles
                }}
            />
        );
    });

    return <CacheProvider value={cache}>{children}</CacheProvider>;
}

GlobalStyles.tsx
"use client";
import React from "react";
import * as reactEmotion from "@emotion/react";
import type {
    CSSInterpolation
} from "@emotion/serialize";

export function GlobalStyles(props: { styles: CSSInterpolation }) {
    const { styles } = props;

    return <reactEmotion.Global styles={reactEmotion.css(styles)} />;
}

Please ensure that only the code necessary for reproducing the bug remains. You can refer to the @emotion/react documentation here. Please steer clear of the native css prop as it presents a challenging setup.
Regrettably, I currently lack the bandwidth to undertake this task myself, but I am here to assist should you encounter any obstacles during the repository conversion.
If solely using @emotion/react resolves the issue, it's excellent news as it would imply an error on my end that I can address. Conversely, if the problem persists, we'll proceed to open an issue in the emotion repository. If a solution isn't reached within a week, I'll personally intervene to rectify the situation.
Please feel free to share any suggestions or thoughts you may have.
I extend my deepest apologies for the less-than-ideal developer experience and sincerely hope that this hasn't consumed excessive hours of your time.
Best regards,

I've managed to reproduce it using only @emotion/* packages, and I think I found the issue:
the <Global /> component in @emotion/react expects the data-emotion attribute to be ${cache.key}-global ${serialised.name}, which tss-react doesn't have in the implementation of the CacheProvider.

@yhaskell Cool!
That mean we can fix it quite easily.

I'm trying to implement a fix and release a candidate

I'm releasing 4.8.7-rc.0 right now.
If you are right in your diagnostic, it should fix it 🤞🏻

I think I've implemented your suggestion correctly but it dosen't seem to work 😞
https://github.com/garronej/tss-react/commit/a87c39c2cd0e218dcf3f3c42989357ab2b658717

Any idea?

@yhaskell Any though? Do you have a suggestion why it dosen't seem to work.
Your insight is very valuable to me.

It's fixed, thanks a lot for your help!


Error

Hello,
When I press the save button then the error comes.

Use this command and works fine.
bench migrate


fs/inode: correct the return value

Summary
fs/inode: correct the return value
correct the return value of fs_getfilep() since the
semaphore take may probably fail if the thread canceled
Impact
N/A
Testing
nuttx daily test

the change is trivial but please add commit message

Done

@jerpelea this patch need back port to 10.1


Multiplayer Greed - can't get nearest object to item

Move from the forum
Apparently item.getNearest()/item.findNearest() are not working, and it is unclear which to use anyway. Both methods seem to work for the base-building though.

Should be solved now that Greed isn't really supported and the new APIs are more consistent.


Make it check architecture

Elaboration: This is just a simple enhancement. Technically there are terraform versions for 64-bit systems and also 32-bit systems. Right now we are assuming 64-bit systems but it should be a simple matter (and some fun extra code) to infer architecture and then use that architecture for all future installs.
Along these lines, on initial startup it might also be cool to print out some steps of the things it is doing to install/check/prepare the system for use with tfvm.

Already a  feature


notary.docker.io does not have trust data for docker.io/jess/*

Hi
Unfortunately, for all your docker images I try to pull and run I get the following error
docker: notary.docker.io does not have trust data for docker.io/jess/*
See 'docker run --help'

where * is one of your images eg spotify: docker: notary.docker.io does not have trust data for docker.io/jess/spotify
Hope you can help!
Thanks

You can use my private repo, it's r.j3ss.co/image so for example
r.j3ss.co/spotify
On Friday, July 8, 2016, James Stone<EMAIL_ADDRESS>wrote:

Hi
Unfortunately, for all the docker images I try to pull and run I get the
following error
docker: notary.docker.io does not have trust data for docker.io/jess/*
See 'docker run --help'
where * is one of your images eg spotify: docker: notary.docker.io does
not have trust data for docker.io/jess/spotify
Hope you can help!
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jfrazelle/dockerfiles/issues/161, or mute the thread
https://github.com/notifications/unsubscribe/ABYNbGjYGD8dkKvdoiSYMpGxmZ5CLs_3ks5qTwmigaJpZM4JIhee
.

--
Jessie Frazelle
4096R / D4C4 DD60 0D66 F65A 8EFC  511E 18F3 685C 0022 BFF3
pgp.mit.edu http://pgp.mit.edu/pks/lookup?op=get&search=0x18F3685C0022BFF3


feat: handle "EPL" by transforming it to "EPL-1.0", add .gitignore

this is handled in #6 in a more general way, but maybe this one will be easier to include.

@aviadatsnyk Thanks for your patch! I am having a closer look at #6 now.
FYI: The Eclipse Foundation is working on a new version of their license. We will have an EPL-2.0 in the near future!

thanks @kemitchell


Add blog post for Bazel 4.1.0

@hicksjoseph @floriographygoth This should essentially be the same text that you already reviewed in the draft release notes Google Doc, but please have a look and LGTM just to make sure :)

I can see that it is merged, but LGTM anyway.


the symbol error!

$i$: The number of reads at this site that match the reference allele.
shoulb be:
$l$: The number of reads at this site that match the reference allele.

Can one of the admins verify this patch?


Fix option to freeze BN layers

Signed-off-by: Jael Gu<EMAIL_ADDRESS>

Codecov Report

Merging #693 (6f1b6f3) into training (1a776d3) will increase coverage by 0.01%.
The diff coverage is 75.00%.

@@             Coverage Diff              @@
##           training     #693      +/-   ##
============================================
+ Coverage     61.17%   61.18%   +0.01%
============================================
  Files           147      147
  Lines          6390     6392       +2
  Branches        989      989
============================================
+ Hits           3909     3911       +2
  Misses         2187     2187
  Partials        294      294

Impacted Files
Coverage Δ

towhee/trainer/trainer.py
64.86% <66.66%> (+0.15%)
:arrow_up:

towhee/trainer/modelcard.py
66.66% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a776d3...6f1b6f3. Read the comment docs.

/lgtm
/approve


Some chart labels are replaced by numbers

http://staging.openprescribing.net/bubble/0601060D0AAA0A0/?date=2017-03-01&highlight=10Q

Updated link: https://openprescribing.net/ccg/10Q/0601060D0AAA0A0/price_per_unit/?date=2017-06-01

This was duplicated (and fixed) in #1050


Font issue on the documentation website.

There is some kind of font/text issue on the Wagtail docs, see screenshot below:

Whitespace character   is unusually wide, however HTML does not show anything out of the ordinary:
<p>Multi-site is a Wagtail project configuration where c...

Hi @dino8890, could you share what fonts you have configured in Firefox, Chrome, and at the OS level? For Firefox in particular, do you have it enabled to allow pages to set their own custom fonts?
I can reproduce what you describe but only when forcing the page to render text using Noto Color Emoji. We have sans-serif in our font stack – the emoji fonts would normally only be used when attempting to display characters missing from the base latin fonts, so I’d suspect this is a browser bug or configuration issue we can’t do much about it.

Hello, by default both Firefox and Chrome use Clear Sans as default sans-serif font. Websites are allowed to use their font preferences in Firefox. Chrome renders docs with Noto Sans despite the default font being Clear Sans. I don't know how browser choose their fonts exactly, but it seems to me like it should use Clear Sans.
I do have Roboto font installed which is explicitly set as a preference in the sphinx theme, but it is not used in Firefox or Chrome. Seems to me like this is an issue with Firefox so I'll file bug report with my package provider.
Thank you all!

👍 it’s indeed very strange. This is my understanding of how a font is picked from our stack, based on what you said:

I’d expect Noto Sans to be your OS-level default font, which we reference in our font stack via system-ui.
Roboto is after that so would only be used for platforms that don’t support system-ui.
Your browser-configured font (Clear Sans) would only apply if sans-serif was reached in the stack.

So back to Firefox, I really don’t see how it’d reach the very end of the font stack, and why that’d be specific to docs.wagtail.org.

Since it's been over a year and we haven't been able to replicate this, I'm closing this. Feel free to reopen if this issue still persists.


Apple Swift version Issue

Failed to build module 'PayUCheckoutProKit' from its module interface; the compiler that produced it, 'Apple Swift version 5.2.4 (swiftlang-1<IP_ADDRESS> clang-1<IP_ADDRESS>)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3 (swiftlang-1<IP_ADDRESS> clang-1<IP_ADDRESS>)'

Please use our latest version of CheckoutPro v2.0.0 which we released on 7th Oct 2020.

Failed to build module 'PayUCheckoutProKit' from its module interface; the compiler that produced it, 'Apple Swift version 5.2.4 (swiftlang-1<IP_ADDRESS> clang-1<IP_ADDRESS>)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1<IP_ADDRESS>)'

@umangarya336 2.0.0, 2.1.0 and 2.1.1 in all version same issue is coming..

@rai09ash did you find any solution

@umangarya336 Still has the same issue. Did you find any solution?

@sreejith23  are you facing this issue on simulator? If yes, then please add arm64 in excluded architecture of Debug mode. Our SDKs are supported on Xcode 12.

@RajvinderPayU This issue is resolved. Yes, the issue was on simulator.

Hi @RajvinderPayU I am cloning the sample project from  https://github.com/payu-intrepos/PayUCheckoutPro-iOS
after pod install and after update setting I am facing two errors given below please provide me solution for this
Xcode  version - 12.5.1

in above provided solution are not working for me
And there are lots of changes project will run then another issue is crash app at runtime after start and log are - given below-
dyld: Symbol not found: _$s8SocketIO0A8AnyEventC5eventSSvpWvd
Referenced from: /Users/amit.mishra1/Library/Developer/CoreSimulator/Devices/DFFFF916-CAA1-47F0-9F68-9FBA2668B7C6/data/Containers/Bundle/Application/67B54CB6-3F73-482B-A9EB-D6D375125BB9/CheckoutProSwiftSampleApp.app/Frameworks/PayUUPICoreKit.framework/PayUUPICoreKit
Expected in: /Users/amit.mishra1/Library/Developer/CoreSimulator/Devices/DFFFF916-CAA1-47F0-9F68-9FBA2668B7C6/data/Containers/Bundle/Application/67B54CB6-3F73-482B-A9EB-D6D375125BB9/CheckoutProSwiftSampleApp.app/Frameworks/SocketIO.framework/SocketIO
in /Users/amit.mishra1/Library/Developer/CoreSimulator/Devices/DFFFF916-CAA1-47F0-9F68-9FBA2668B7C6/data/Containers/Bundle/Application/67B54CB6-3F73-482B-A9EB-D6D375125BB9/CheckoutProSwiftSampleApp.app/Frameworks/PayUUPICoreKit.framework/PayUUPICoreKit
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/amit.mishra1/Library/Developer/CoreSimulator/Caches/dyld/20E241/com.apple.CoreSimulator.SimRuntime.iOS-14-5.18E182
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/amit.mishra1/Library/Developer/Xcode/DerivedData/CheckoutProSwiftSampleApp-hjicaufqwzcbcubywscqkjcehgmu/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platfo


Changing SVG source via   data attribute disables all features

Hello there,
First, thanks for your awesome work.
I'm having some troubles with some behaviour I would like my application to have :
For example, I'm displaying my SVG using the <object> like this :
<body ng-keypress="handleKeys($event)" ng-controller="viewerController">

<object id="svgElement" type="image/svg+xml" data="../SVG/map1.svg">
It seems your browser doesn't support SVG.
</object>

I set my options like this :
<script>
    window.onload = function() {
        document.getElementById("svgElement").style.width = window.screen.availWidth + "px";
        document.getElementById("svgElement").style.height = window.screen.availHeight + "px"; // This seems to include the browser bar :(
        svgPanZoom('#svgElement', {
            zoomEnabled: true,
            controlIconsEnabled: true,
            fit: true,
            center: true,
            minZoom: 0.8,
            maxZoom: 30,
            zoomScaleSensitivity: 0.15,
            dblClickZoomEnabled: true
        });
    };
</script>

(Btw what do you suggest to use here instead of onload event ?)
It is working just fine. I can zoom and pan.
But depending on some events, I want to change the displayed SVG.
In my controller (I'm using AngularJS) I have this :
$scope.handleKeys = function(e) {
        if (window.event)
            $scope.keyPressed = window.event.keyCode;
        else if (e)
            $scope.keyPressed = e.which;
        // S key pressed :
        if ($scope.keyPressed == 83 || $scope.keyPressed == 115)
            alert("S key has been pressed"); // This will display the search banner on the top of the screen
        // C key pressed :
        if ($scope.keyPressed == 99 || $scope.keyPressed == 67) {
            document.getElementById("svgElement").data = "../SVG/map2.svg";
            document.getElementById("svgElement").style.width = window.screen.availWidth + "px";
            document.getElementById("svgElement").style.height = window.screen.availHeight + "px";
            svgPanZoom('#svgElement', {
                zoomEnabled: true,
                controlIconsEnabled: true,
                fit: true,
                center: true,
                minZoom: 0.8,
                maxZoom: 30,
                zoomScaleSensitivity: 0.15,
                dblClickZoomEnabled: true
            });
        }
    }

So it's half working :
When I press the 'C' Key, my new SVG is displayed instead of the old one (even if when I'm spamming the key the SVG disappear)
The main problem is : I lost the zoom, the pan, the width/height I had set... Basically I have nothing left on the new SVG.
Do you know why and how to fix it ?
Also could you please have a look at this : http://stackoverflow.com/questions/29372738/svg-as-zoomable-background-cant-select-anything
Best regards.

Normally I would not answer it here (but on stackoverflow as mentioned in readme).

(Btw what do you suggest to use here instead of onload event ?)

It depends on what you have. onload is fine if you have just one onload. If you use Angular then you have jQuery, so it is more safe to use jQuery onload callback `$(function(){//code goes here});
If you load your SVGs via a link (data attribute of the object) then you may want to wait for SVG to load (an example with embed in demos).
If you want to change SVG image then I would recomend:

Cache/save actual svg-pan-zoom zoom and pan values
Destroy actual svg-pan-zoom instance (use destroy API method)
Update your object
Initialize new svg-pan-zoom
Set cached/saved pan and zoom values to new svg-pan-zoom instance


OAuth demands too much

This seems to be way too much access for this extension:

Related: https://github.com/Microsoft/vscode-pull-request-github/issues/563

That is the standard permission set when an extension needs access to public and private repositories

Why do you need access to all public and private repos? It's bad enough that third party integrations all demand this; but I thought GitHub would do better. I wouldn't use this extension on the basis of this.. I'm aware GitHub essentially already has access to my private repos, but I won't install any extensions/apps/etc. that require more access than they need. It's a worrying trend that isn't encouraging users to care about security.


Fix broken link to ECS guide

As discussed on Slack this URL should be updated.
cc: @lukemarsden, @abuehrle, @soschwei

This should be against 1.9?


Editing System Tool breaks Display Tool

When editing the system tool, the display tool throws an out of bounds index error. While this doesn't affect production, there is an issue with trying to render too many colors which needs to be looked at.

This has been fixed.


keV not correct

keV is defined as 1000 instead of a multiple of eV:
>>> import physunits
>>> physunits.eV
1.602176634e-19
>>> physunits.keV
1000.0

Add change in commit 04fd62f.

I have tested across different environments from py3.7 to 3.9 and this seems to work fine. I have propagated the changes to the package so you can now run
python -m pip install physunits==1.0.1
on your favorite local environment or alternatively
sudo pacman -S python-physunits
if it applies to your local Arch-based distribution and the issue should be fixed. Thanks for noting it in the first place and contributing to making this package better.

Thanks Paco!


feat: adding an easter egg for the tool.

Found this today whilst building a new angular project.
Keep up the great work!


Remove version: qBittorrent.qBittorrent version 4.6.2

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

Close with reason: URL works;


Add danish.nsi

Coverage increased (+0.03%) to 76.927% when pulling 367db31cf315838ccfcabf0f44b3ef2ce1ce3f57 on scootergrisen:topic/refactor-installer into 69f7541b48410a8c1c3e977a2f26b0e7a7db96c7 on k-takata:topic/refactor-installer.

Codecov Report

Merging #1 into topic/refactor-installer will increase coverage by 0.01%.
The diff coverage is n/a.

@@                     Coverage Diff                      @@
##           topic/refactor-installer       #1      +/-   ##
============================================================
+ Coverage                     77.15%   77.17%   +0.01%
============================================================
  Files                            99       99
  Lines                        139013   139013
============================================================
+ Hits                         107261   107285      +24
+ Misses                        31752    31728      -24

Impacted Files
Coverage Δ

src/gui.c
56.87% <0%> (-0.67%)
:arrow_down:

src/gui_gtk_x11.c
48.06% <0%> (-0.45%)
:arrow_down:

src/os_unix.c
58.05% <0%> (-0.14%)
:arrow_down:

src/channel.c
83.06% <0%> (-0.12%)
:arrow_down:

src/screen.c
79.17% <0%> (-0.05%)
:arrow_down:

src/syntax.c
78.41% <0%> (-0.03%)
:arrow_down:

src/undo.c
83.18% <0%> (+0.06%)
:arrow_up:

src/diff.c
77.29% <0%> (+0.13%)
:arrow_up:

src/ex_cmds.c
80.1% <0%> (+0.22%)
:arrow_up:

src/if_xcmdsrv.c
84.53% <0%> (+0.35%)
:arrow_up:

... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69f7541...367db31. Read the comment docs.


[BUG] autocomplete not working when defining a filter

What is the bug?
The autocomplete is not working when defining a filter on OpenSearch Dashboards 2.14 (backend is OpenSearch 2.14)
How can one reproduce the bug?
Steps to reproduce the behavior:

Go to 'Discover'
Click on '+ Add filter'
In the  'EDIT FILTER' windows, select a field (“application” in the screenshot provided)
Still in the  'EDIT FILTER' windows, choose the operator “is”
Still whithin the  'EDIT FILTER' windows, in the “value” text-field, type a letter or more, but the autocomplete does not work
Some error 500 are shown in the “chrome debugger” network tab (see screenshot provided)

What is the expected behavior?
A clear and concise description of what you expected to happen.
What is your host/environment?

OS: CentOS
Version: 8.8
Plugins:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.
This behavior was reproduced using various browser, OS

Sorry I created this issue in the wrong repository - closing it
For reference, I created this one: https://github.com/opensearch-project/OpenSearch-Dashboards/issues/7631


Is there a way to change the OpenAI API base URL [local llm]

Hello,
There are a lot of OpenAI-compatible RESTful APIs. Fastchat is a good example, it's an open platform for serving a large open source llms.
Because it's compatible with openAI API, it makes it very easy to switch between openAI models and open source ll models. The only parameters to change are:
openai.api_key = "EMPTY"
openai.api_base = "http://localhost:8008/v1"

Is there a way we can do this in OpenChat ?
[Edit]: I came across this: https://github.com/openchatai/OpenChat/blob/main/dj_backend_server/readme.md#environment-variables-in-the-env-file
It seems that we can do that by changing the env variable in the django backend server. But, OPENAI_API_BASE is not used at all in dj_backend_server.
We only use AZURE_OPENAI_API_BASE (eg., in get_azure_openai_llm() openai_api_base=os.environ['AZURE_OPENAI_API_BASE'])
Is there a way to make that possible ?

Of all the options, I think Ollama is the most straightforward. By setting the IP address for chat models to 'host.docker.internal', we can enable the docker containers to communicate with Ollama on the host machine.
Ollama: https://ollama.ai/
You can find the implementation here
https://github.com/openchatai/OpenCopilot/blob/main/llm-server/utils/get_chat_model.py


197507 segmentation fault (core dumped)

After I install all the requirements and download NeRF-Synthetic data,I tried the command “python launch.py --config configs/nerf-blender.yaml --gpu 0 --train dataset.scene=lego tag=example” and it worked properly.However, after I installed the COLMAP by installation instructions and ran "python scripts/imgs2poses.py ./load/room" a day later，I ran "python launch.py --config configs/neus-colmap.yaml --gpu 0 --train".This time,it reported a segmentation fault:

I tried the same command "python launch.py --config configs/nerf-blender.yaml --gpu 0 --train dataset.scene=lego tag=example" again and it report the same error.I'm wandering if the enviroments of COLMAP will damage the environments of instant-nsr-pl?
Here are same of the history command related:

My cuda version is 11.8 and my Ubuntu is 22.04.
And after I test the launch.py, I noticed that it failed at 114:trainer.fit(system, datamodule=dm),but I still don't know why.

Hi! Could you try reinstalling nerfacc and tinycudann?


Config not saving

Environment
Self-Hosted (Docker)
System
Ubuntu
Version
Current
Describe the problem
Any changes i make in dashboard i save to disk via UI, If i reboot the server these changes are gone and dashy is vanilla /  default
Additional info
No response
Please tick the boxes

[X] You have explained the issue clearly, and included all relevant info
[X] You are using a supported version of Dashy
[X] You've checked that this issue hasn't already been raised
[X] You've checked the docs and troubleshooting guide
[X] You agree to the code of conduct

Same problem here !
Unable to save conf.yml from the UI
The backup file is created, but the conf.yml isn't saved !

I still can't save the conf file from the gui
is there a solution ?

I have the same issue.  I get an error "AxiosError: Network Error".  This doesn't always happen and I'm trying to diagnose when it does currently.

Same issue, regarding the file not saving but the backup is created. Rebuild also fails randomly, 503. I've found it easier to simply edit the conf file manually the restart the docker container.

So, for me the answer was to implement a non-root installation for the container.  Not sure why it worked but there's obviously some conflict somewhere that doesn't occur when you're container is running under a non-root user.
Just added UID and GID environment variables:
# Set any environmental variables
environment:
# Specify your user ID and group ID. You can find this by running id -u and id -g
- UID=1001
- GID=1001
Bear in mind that "1001" was my default user and your user may be different.  Quick chown -R in the terminal for the folders where I was storing the persistent volume for Dashy, bounced the container and everything has been fine since.

I have been having a similar issue. I’m going to give this a shot as well and see if I make and progress. Thanks for the recommendation!

I have the same issue. Any kind of change is not update. Backups are made, but any change is effective.

Hi,
I've tried to change UID and GID with non-root user, but problem persists !

Hi, I am having the same problem, set all my links up then boom, everything gone.  Tried the non-root user change, and still broken.

Not sure if this is the intended design of dashy or if there is a bug, but what I finally found work had nothing to do root owner. After editing hit “Save to Disk” and then open the Update Configuration (the wrench icon) and then select “Rebuild Application”. After its success, i have had no issues with refreshing the dashboard, closing it and repointing it.
While saving a config doesn’t trigger the rebuild, I’m not sure but this has solved the issue for me.

@Lissy93 i had this same issue that caused me to loose all my edits multiple times. edited fonts and colors did not stick after saving to disk multiple times, but menus, menu items and icons did. @strangedesign13's workaround above finally did the trick. i feel the expected behavior is for the "save to disk" function to trigger the "rebuild application" function. fwiw i'm using ff/librewolf and everything is up to date. plz look into this. thx again for your work. dashy is awesome :purple_heart:

Hi,
I have an Ubuntu 22.04 VM running with Docker setup, I set up Dashy and had it configured to how I wanted, looked great etc.
Tested it with a reboot and docker didn't auto-start so I sorted that (see command history file)
Next, however, when I checked my Dashy, the config is reset...
Dashy_commands.txt
I changed > Save to disk > tried the rebuild that @strangedesign13  suggests but it doesn't work.
I have attached my commands history, maybe someone can shed some light as to what's going on, please? @Lissy93

Hi,
I have an Ubuntu 22.04 VM running with Docker setup, I set up Dashy and had it configured to how I wanted, looked great etc.
Tested it with a reboot and docker didn't auto-start so I sorted that (see command history file)
Next, however, when I checked my Dashy, the config is reset... Dashy_commands.txt
I changed > Save to disk > tried the rebuild that @strangedesign13 suggests but it doesn't work.
I have attached my commands history, maybe someone can shed some light as to what's going on, please? @Lissy93

Did you check that your Docker setup has persistent storage?

go to Config > Enter Interactive editor > Edit App Config > Allow Config Editing
Check the box, then you can use the save to disk button

Same issue. Config gets reset.

I had the same issue and resolved with the fix mentioned above. I made my edits, saved to disk, then went to Configuration Options and selected Rebuild Application and Reload Page. My changes then survived a reboot. A few more buttons to push, but works for me.

Another instance of the exact same issue. I'm running Dashy as a Debian 12 LXC Container on Proxmox 8. I installed it using the Helper Scripts. Using @strangedesign13's suggestion worked for me as well.

deployed on vercel
I get this error while trying to save config. is there any thing else that i need to configure in vercel to get the config saved
AxiosError: Request failed with
status code 405

I got that error when the docker container stopped unexpectedly

Same issue! Actually new user, just started the configuration and with some refresh the configuration is all gone (including sample/ initial shortcuts, which I did not deleted).
Running Dashy in LXC

I think there may be a several different issues here,
Possible Issue 1: Unable to call save endpoint from CDN/static server
If you're running Dashy on a static host, like Vercel, then there's no server-side code to actually save the config, re: #1465 (this is outlined bit more in the docs)
Possible Issue 2: Unable to save
In Docker, double check that the file isn't read-only, and that the container actually has permissions to modify it. You shouldn't really be running it as a root user, and I'm not sure if it will work if you do
Possible Issue 3: Saved but not updating
After saving, the frontend will recompile, which may take a couple seconds (or a bit longer on a Pi or low-powered device). If it doesn't recompile, you can manually trigger a re-build.
None of the above?
If you're still having issues, if you could share the following with me, it'll help me look into it further:

If you open the conf.yml file, can you see your changes?
When you save, are there any errors in the browser console (see: how to open browser console)
Are there any errors in your Docker logs?

Hi
This problems seems to be related to dashy not automatically rebuilding on changes (https://github.com/Lissy93/dashy/issues/1147#issuecomment-1633020158) , see #1479 and https://github.com/Lissy93/dashy/issues/1290#issuecomment-1884249018
A new release has just been published, which should fix this issue, so please upgrade to the latest version.
If this is not the case just respond back to this ticket and I'll reopen this issue.
Thanks and have a nice day.

Hello,
I am still having issues with this - saving the configuration via the gui does not work properly.
I am using docker-compose, setting UID and GID to my user (1000:1000). I am passing through a whole folder to the container, permissions of the folder and all the files within are correct.
When I make a modification from the GUI, a backup file is created - therefore dashy can write to the folder - but the new conf.yaml is... not new, it's just the same. I see no error in the docker log, when I hit save a rebuild is correctly triggered, no error in the browser console as well.
I tried all permutations that I could think of, running the container without UID/GID, changing ownership of the folder to root:root, making the folder & contents chmod 777...
I am unsure how to proceed, I love this project and I am willing to perform any troubleshooting that might be necessary.

I have the same exact issue. Dashy works. Installation/Configuration is done properly. I've been configuring Dashy for a couple of days now with little to no issues. However I am not able to edit config file via GUI. I mean I could do it the first time but never again after that. Changes are never really saved, even though saving confirmation is shown as successful.
I've tried waiting, reloading and rebuilding with no success.

I had the save issue. Now, I just do preview changes -> save to disk from the JSON editor. This workaround works very well and is easy :tada:

I had the same issue. Now, I just do preview changes -> save to disk from the JSON editor. This workaround works very well and is easy 🎉

I've tested, but it does not work for me. I can edit "tree" (eg changing the order of sections) and save then, it works. Changes might require rebuild or reload page, but it works. The bug appears only when "code" is used and changed anything (even a string or something), it's never saved, using "Preview Changes" does nothing in this case.
When checking the actual files upon saving, two are affected. Backup and normal conf.yml, but contents are the same, as is the timestamp of both files, unfortunately the saved version is the previous one, so no actual changes were stored.

Try V3, there should be no more issues with this anymore

Did a quick recreate docker to v3. Tested for about 10min, all seems to be working now. Thanks L.


Change product name from 'Euclid' to 'Euclid: The Game'

The product name will be the name that will appear in the App Store, I would prefer having the name be 'Euclid: The Game'.
It seems like the product name is also used for the bundle identifier. It seems like the build indentifier is supposed to be the domain in reverse (com.euclidthegame) followed by the productname. So maybe change the build id to: com.euclidthegame.euclidthegame ? @DavidHallgren

done in this commit:
https://github.com/euclidthegame/euclidthegame.iOS/commit/034c5d41709d8069068ae7675e202ec88cf62d4a


Hidden files are not included in :Clap files

Expected behavior
Hidden files are included in the list of files returned

For now, the files provider args has not been supported. If you are eager to use, try adding --hidden to the fd or rg options until this issue is really resolved.
https://github.com/liuchengxu/vim-clap/blob/7fb32bf2211352109c201f85c0b3c81ad05aa2c2/autoload/clap/provider/files.vim#L12-L13

Hi!
Firstly great plugin! Really enjoying using it. Secondly, yes please for this! I was wondering why some of my dot files where not showing in the window. I look forward to this enhancement being done :-)


the lr "my_inverse_sqrt" and some arguments are unrecognized.

Hello,
I see your example training code, and i make new environment and pip install your code.
But i dont see the lr "my_inverse_sqrt" and the arguments(-encoder-block-layers --extract-encoder-hidden-states --decoder-block-layers) in your code.
So when training, the arguments above cannot be recoginzed.

Thanks for raising the issue. The bash script of WMT-2014 En-De is outdated. We use "inverse_sqrt" as the value of --lr-scheduler. We have renamed "--encoder-block-layers" as "--encoder-group-layers" and removed the argument "--extract-encoder-hidden-states".
You can check or modify transformer.py and options.py for argument and hyper-parameter settings.

Thanks for response. I think your work is wonderful, and i mainly want to use your code to make translaton such as WMT14 task, i see the transformer.py in github, but transformer.py takes no change compared to the default transformer.py in fairseq, whether the wrong version is uploaded.
------------------ 原始邮件 ------------------
发件人:                                                                                "YuweiYin/GTrans"                                                                                @.>;
发送时间: 2023年3月2日(星期四) 下午2:44
@.>;
<EMAIL_ADDRESS>主题: Re: [YuweiYin/GTrans] the lr "my_inverse_sqrt" and some arguments are unrecognized. (Issue #2)
Thanks for raising the issue. The bash script of WMT-2014 En-De is outdated. We use "inverse_sqrt" as the value of --lr-scheduler. We have renamed "--encoder-block-layers" as "--encoder-group-layers" and removed the argument "--extract-encoder-hidden-states".
You can check or modify transformer.py and options.py for argument and hyper-parameter settings.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Thanks for your appreciation. We'll check the code and update it later. The implementation is easy: we pick up and fuse some hidden states of different layers, like in Figure 2 in our paper. The fusion function is defined in Equation 2, where $w_i^e$ denotes an individual parameter of the i^th layer in the encoder.


Way to do PHP includes?

include vs file_get_contents?

include, because file_get_contents does NOT EXECUTE PHP FILES!

Okay got it.

Oops

lol

I guess this can be closed.

Yup, as long as @pilppe doesn't keep using file_get_contents...


Hide prev/next on screenshot carousel & indicate meaning of "Last update" date

Close #15

I'm going to self-merge this, since I own the app market.


enable codeql

/azp run

@mavasani it doesn't look like I have permissions to run/test this change

/azp run

@jmarolf I have added you to the admin group for the repo.
Pipeline: https://dev.azure.com/dnceng/internal/_build?definitionId=956
I am not sure how to edit the pipeline to kick of the build for PRs for this repo. Triggers for the pipeline don't seem to be editable:
https://dev.azure.com/dnceng/internal/_apps/hub/ms.vss-ciworkflow.build-ci-hub?_a=edit-build-definition&id=956&view=Tab_Triggers


Still getting output to console despite env.set(param::OutputFlag, 0)

Hi, first of all great work on the library; it is the best lp modeler library imo.
There is one annoying issue. Even though I set the OutputFlag to 0, I still get two annoying lines among every run of the model:
Set parameter Username
Academic license - for non-commercial use only - expires 2024-04-08

Since I am running this model many times, the printing is slowing down my program.
Do you know why this  is and what to do about it? I tried using gurobi 9.52 and 10.0.1

Nevermind, using an empty env I got it to work:
        let mut env = Env::empty().unwrap();
        env.set(param::OutputFlag, 0).unwrap(); // license will not be printed when env starts
        let env : Env = env.start().unwrap();


go-releaser action is broken

this curl https://nitric.io/install | bash is now broken as the goreleaser job is failing.
https://github.com/nitrictech/cli/actions/runs/3625273579

Fixed


Q-touch WIFI dimmer switch

Hi,
I have wireless WIFI dimmer switch LX-WIFI-03O(EU) manufacturer by KFJIA branded by Q-touch with sw_version="PSF-BTA-GL v3.4.0" in app eWeLink works well.
But in HA with custom_components AlexxIT/SonoffLAN :) I can only turn off switch, I can't turn on and dimm.
I noticed that in dev services from "sonoff.send_command" it's not working good sending commands: "bright: 0" and "switch: 'on/off'" together in one message.
From logs shows that In app eWeLink or from device this commands are sent separately.
The logs also show that my switch is using 'uiid=36' so in source file 'light.py' class SonoffDimmer is used to serve this switch, so when on ending of class I changed the line from:
await self.registry.send(self.deviceid, {'switch': 'on', 'bright': br})
to two lines:
await self.registry.send(self.deviceid, {'switch': 'on'})
await self.registry.send(self.deviceid, {'bright': br})
that it's works better :)
I don't know why the commands 'switch' and 'bright' cannot be sent together in one message.
BR

You can reopen issue if it's still relevant


Use Quoted Includes for Header-to-Header Inclusion

This PR is part of an effort to support SwiftPM (#293), but to keep things organized, I am splitting it into smaller, focused changes. This particular PR addresses one such change: modifying how XLXmlParser.hpp includes XLException.hpp by switching from angle brackets to quotes.
This change is necessary for SwiftPM compatibility.
To provide some context, there are two types of builds to consider:

Building OpenXLSX itself: In this case, there is no issue.

Both headers and sources are compiled together.
The OpenXLSX codebase requires the following search paths:

OpenXLSX/
OpenXLSX/headers/
OpenXLSX/external/pugixml/
OpenXLSX/external/zippy/

For example, the third search path is necessary because XLCell.hpp includes #include <pugixml.hpp>.

Building targets that use OpenXLSX: Here, SwiftPM's technical limitations introduce issues.

Unfortunately, SwiftPM's C++ targets can only configure one include path for a library, known as the public header directory.
Setting this path to OpenXLSX/ allows the following includes:#include <OpenXLSX.hpp>
#include <headers/XLCell.hpp>
#include <external/pugixml/pugixml.hpp>

However, these includes are not possible:#include <XLCell.hpp>
#include <pugixml.hpp>

This is because OpenXLSX/headers/ and OpenXLSX/external/pugixml/ are not included in the include paths.

Luckily, this issue affects only the single location addressed by this patch. This is because, during the build of targets using OpenXLSX, headers are part of the compilation, but source files are not.
In the current codebase, pugixml includes are already written differently for headers and source files:

In source files:#include <pugixml.hpp>

In header files:#include <external/pugixml/pugixml.hpp>

To address this, we need to fix how XLXmlParser.hpp includes XLException.hpp. Both files are in the same directory, so using a quoted include resolves the path as a relative path:
#include "XLException.hpp"

In fact, the following files already include XLException.hpp using quoted includes:

XLCellValue.hpp
XLComments.hpp
XLDateTime.hpp
XLRowData.hpp
XLSheet.hpp
XLXmlParser.hpp
XLCellIterator.cpp
XLCellReference.cpp
XLCellValue.cpp
XLColor.cpp
XLDateTime.cpp

XLXmlParser.hpp is the only exception to this pattern, making it an outlier.

As I said in the other PR, the decision on whether to support an entirely different build system is up to @troldal - as for the includes, I will not touch them project-wide - I have broken things by changing some include logic in the past, this would require extensive testing to see if it makes sense.
As I also explained, there is no guaranteed difference between using angle brackets and quotes for include statements, so I wouldn't change those anyways.

Thank you for the explanation. I’ll wait for @troldal’s comment.

there is no guaranteed difference between using angle brackets and quotes for include statements

There is an important difference.
Angle brackets instruct the compiler to search in the specified search path list. In contrast, double quotes also allow resolution via relative paths.
For example, if a.c, a.h, and b.h are in the same directory, within a.c or a.h, you can write:
#include "b.h"

and it will be resolved. On the other hand:
#include <b.h>

will only work if the directory is included in the compiler’s search paths.
The key difference is that the former (using double quotes) guarantees resolution based solely on the library’s source tree structure, while the latter (using angle brackets) depends on the build configuration of the library user.
This proposed change specifically focuses on addressing this distinction.

I also once misunderstood the include preprocessor directive like you seemingly do. But that is not how it works:
https://en.cppreference.com/w/cpp/preprocessor/include
Check the Explanation for (2):

The named source file is searched for in an implementation-defined manner.

Fix your include path configuration and the error goes away.

Yes, that’s correct.
If I can replicate the include path configuration that CMake sets up, I can build without modifying the codebase.
Specifically, in this case, it’s necessary to add the OpenXLSX/headers/ directory to the path.
In the CMake source, this is configured with:
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/headers>

Unfortunately, due to the limitations of SwiftPM, it is not possible to replicate this.
SwiftPM only allows setting one directory for a library’s public headers.
As a result, only OpenXLSX/ can be set as the path.

In that case, this sounds like you should open a pull request / issue at https://github.com/swiftlang/swift-package-manager for supporting the functionality that every C++ compiler has.

It looks like your issue on the swift package manager is well received by at least one developer. Is it okay if you withdraw / close this pull request?

No, setting aside the issue with SwiftPM, I’d like to hear @troldal’s opinion on the following matter:
I believe the use of angle brackets for including XLException.hpp from XLXmlParser.hpp, while all other headers include XLException.hpp using quotes, is likely just an implementation oversight.
It would be more desirable for the codebase to maintain consistency in this regard. This patch is unrelated to SwiftPM and represents a valuable improvement for the OpenXLSX codebase itself.


Remove the rest of Firebase as development pods

This cuts incremental pod install time down from ~120 seconds to ~25.
If we ever need to jointly develop features with Core or Auth again we
can re-add these entries temporarily.

Did you determine that the slowness was because of the usage of development pods versus the recent addition of the GoogleDataTransport and associated pods?
If it's the addition of the pods, the slowness will come back as soon as Firebase 6.6.0 releases.

So before GoogleDataTransport and friends landed on master, our pod install was ~90 seconds. Adding them as development pods bumped us into the 120 range.
This suggests pretty strongly that development pods are to blame. It's possible things might get slower once 6.6.0 lands but it's very, very likely that the incremental install time will stay lower than it is now.


Future of k8up

Given the announcement of Project Syn
https://vshn.ch/syn/
Is project syn going to take precedence of this repository ?
Should I skip straight to project syn or will support for k8up continue ?
Thanks !

Thanks for caring about K8up!
K8up will continue to evolve, no worries. It will probably move under the umbrella of Project Syn, but it will stay the same and get even more traction and development in the future.

Thanks for clarifying :+1:


Add ability to sort by time in incoming offers

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR type

[x] Bugfix
[ ] Feature
[ ] Refactoring

What's new?

[x] PR closes #3550
[ ] Requires deployment <rubick/magick_issue>
[ ] <brief_description_of_what_I've_added>

Before submitting Pull Request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[ ] I've tested PR on mobile and everything seems works
[ ] I found edge cases
[ ] I've written some unit tests 🧪

Had issue bounty label?

[x] Fill up your KSM address: Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot

[x] My fix has changed something on UI; a screenshot is best to understand changes for others.

pay 50

😍 Perfect, I’ve sent the payout
💵 $50 @ 62.22 USD/KSM ~ 0.804 $KSM
🧗 Caiv9TbPz68q5dC8EcHu5xKYPRnremimGzqmEejDFNpWWLG
🔗 0x9a346d3d149331c0c90a0bc1c485ad595f73b21ce5ad572eb5a9ac72146d93ce
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues

😍 Perfect, I’ve sent the payout
💵 $50 @ 62.73 USD/KSM ~ 0.797 $KSM
🧗 Caiv9TbPz68q5dC8EcHu5xKYPRnremimGzqmEejDFNpWWLG
🔗 0x0e035eb4a00914ff04e08619c4b3e817d312ca789a3760bff61ae67477b043f7
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


How to save imported file in directory?

User imports a stl file, do we have a option to save the file into our database or server directory?

Meshy doesn't allow this right now. It's just a static page app with no server space behind it, so there's no account creation and storage.
You can export to your machine (it saves into the default download directory) and then upload elsewhere.


Exception Missing default script thrown when no task is specified

Calling Invoke-Build without specifying a task throws the following exception:
‘Missing default script.’
I expected Invoke-Build would run the default task if no task is specified.
This is my build script:
task Build {
	Write-Host "Build..."
}

task Clean {
	Write-Host "Clean..."
}

task . Build, Clean

And this is how I start the script:
.\packages\Invoke-Build\tools\Invoke-Build .\.build\Build.ps1

Why does Invoke-Build not run the default task?

Take a look at the Invoke-Build syntax (help Invoke-Build):

Invoke-Build.ps1 [[-Task] <String[]>] [[-File] <String>] ...

Note that Task is the first positional parameter and File is the second.
.\packages\Invoke-Build\tools\Invoke-Build .\.build\Build.ps1

The above command specifies the task "..build\Build.ps1" and no build script. As a result, Invoke-Build looks for the default script in the current location and then in its parent directories. It is not found, hence the error. But even if it is found it would not work with the task "..build\Build.ps1".
You should either specify the parameter name -File:
.\packages\Invoke-Build\tools\Invoke-Build -File .\.build\Build.ps1

or specify the default task explicitly as the first positional parameter, as the syntax requires:
.\packages\Invoke-Build\tools\Invoke-Build . .\.build\Build.ps1

By the way, your script Build.ps1 will not be recognized as the default even if it is in the current directory. By the convention it should be either named .build.ps1 or something.build.ps1. In the latter case it also should be the only like *.build.ps1 in its directory.

If there are no more questions or related issues please close the issue.

Sorry had no time to check you answer until now.
Thank you very much for your answer.
Specifying the name of the parameter works perfectly.