[Do not merge]Removing network namespace of container if its in host network

Need to validate it for containers which expect access for host network namepspace like network plugin containers.
Signed-off-by: Abhinandan Prativadi<EMAIL_ADDRESS>

@abhinandanpb Do we still need this? I still don't understand there is any difference.

I will confirm after testing it once and close it if not needed.

will open if needed. Havent got a chance to test it yet


optimize: add the decompression size limit

[ ] I have registered the PR changes.

Ⅰ. Describe what this PR did
add the decompression size limit
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Can the maximum value for other compression type also be configured?

Can the maximum value for other compression type also be configured?

I checked that the other compression methods all use ByteArrayOutputStream as the stream output and use the reusable buffer size, there is no similar issue.


3 Questions.

Is this the ENIAC?
If not, how is it a computer?
Who paid for the hardware? the Government?

I am not sure to understand the question. Apart from being able to compute things and being powered by electricity, ENIAC and my computer have little in common. It is my pet project and thus I pay for the hardware from my pocket.

History can't ... Oh wait! I see. You want me to teach you about the ENIAC?
You are more shrewd than I thought. Nice! 😻

I'll hide the above comment once you ack it.

Thanks. closing to avoid as Men⬆.


Bot does connect, but music doesn't start

General Troubleshooting
Please check off these steps before suggesting a feature or reporting a bug:

[X] I am running the latest version:
[X] I have followed all instructions on the setup page (and if applicable, Raspberry Pi)
[X] I have read through the planned and suggested features

Issue
When I'm trying to play music, my bot does connect to the voice channel, but isn't 'talking', also, whenever I type: ;;nowplaying, it does show my requested song, but it's also isn't showing any progress
Issue Type

[X] Bug Report
[ ] Feature Request

Description
This is what it prints in my ssh terminal
[15:10:41] [WARN] [Settings]: Failed to load server settings (this is normal if         no settings have been set yet): java.nio.file.NoSuchFileException: serversetting        s.json
[15:10:41] [INFO] [Startup]: Loaded config from /root/FSBot/config.txt
[15:10:41] [INFO] [JDA]: Login Successful!
[15:10:42] [INFO] [WebSocketClient]: Connected to WebSocket
[15:10:43] [INFO] [JDA]: Finished Loading!
[15:10:52] [INFO] [AudioManager]: Audio System successfully setup!
[15:13:03] [WARN] [AudioWebSocket]: Failed to establish websocket connection: SO        CKET_CONNECT_ERROR - Failed to connect to 'eu-west726.discord.gg:443': Connection timed out (Connection timed out)
Closing connection and attempting to reconnect.
I'm on Ubuntu server

Does this happen consistently? What VPS provider are you using?

Yes it does, I'm on my mates private service.

Do you know if the 'private service' is hosted on Hetzner's servers by chance?

Yes it is.

Discord blocks all voice connection from Hetzner, so you won't be able to run this bot from there.


replace KvValue enum with Vec<u8> type

Instead of wrapping each kv value type in an enum, make them convertible to Vec<u8>, and use Vec<u8> as kv-store value.
We can provide TryFrom implementations for PartyInfo (gg20) and Entropy (mnemonic), but not for SecretScalar (multisig). So, for SecretScalar, seralize/deserialize is done in place before putting in the kv store.

Looks good. Should we stop storing the secret key in tofnd's kv store? See axelarnetwork/tofn#194

I think that would be worth doing to simplify the API, and not require additional secret material storage, unless there are other priorities.


Updated to razor engine

I made a few assumptions about how you would want to handle the Models that required to use the Razor Engine.  Let me know if I assumed wrong on any of it.  I didn't see any contribution guidelines or anything.
I adapted code I am using to generate dynamic in-memory templates to fit your use case.  Also I did this in a Mono environment so the test didn't work properly for me but it should work on Windows.

https://github.com/Inside-Sistemas/mailer.net/issues/1

@rbj325 I will test on windows today, so could you squash in one commit your changes?

Sasquashed.

@rbj325 I would like to include this feature in our next release, can you look this error and this conflicts?


esp_tls_conn_write() - TLS->SSL.conf set to 0? (IDFGH-10469)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
I am trying to write via a TLS connection. I have previously run esp_tls_init() and esp_tls_conn_http_new_sync(), both of which returned successfully per their error codes.
However when I try esp_tls_conn_write it returns with 0x7100 for bad parameters. Stepping into  the function, I see that eventually within esp_mbedtls_write() -> mbedtls_ssl_write(), the SSL member of the TLS pointer is set to 0, despite passing the init section without error.
I based this code off of the https_request example, which ran with no errors.
Anyone have any ideas?

Hi @bmkuter Can you please provide a sample code that is able to reproduce your issue correctly?
I think it would be better to take a look at the application before inferring about the cause of the issue.
I would suggest you make sure of following thing

Configuration structure for esp-tls has been set appropriately
Return values of esp_tls_init() and esp_tls_conn_http_new_sync() are checked correctly.
Try connecting with the same server using openssl and see if it responds correctly to your queries.


Basic Gates Workbook Task 2.3

Basic Gates Workbook Task 2.3 V2

Ciao Mariia, not sure what I've done differently, but this has not caused conflicts. I'm tempted  to add the next task, but also don't wanr to tempt fate

Thank you Mariia, I'll get right on the next Task today. Just two to go now
:)
On Fri, Feb 25, 2022 at 6:18 AM Mariia Mykhailova @.***>
wrote:

@.**** approved this pull request.
Looks good! I did a bit of cleanup, including adding a table showing the
effects of the sequence of the CNOT gates in more detail.
Thank you! Let's see if the next pull request turns up with conflicts or
without :-)
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/QuantumKatas/pull/753#pullrequestreview-893276719,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACS4UWYXO4TTNS434G5IGM3U44GKDANCNFSM5OV4JP7A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Length of events doesn't correspond the end time on week view with time grid

The issue is on the week view and calendarConfig.showTimesOnWeekView set to TRUE. The length (height) of the events doesn't extend to the end time. It seems that all events are 30 minutes long.
Plnkr here:
http://plnkr.co/edit/NTqtn2CvXhp8cyyQVNo8?p=preview
Versions
Angular: 1.5.8
Calendar directive: latest
Browser name and version: all browsers

This is a known caveat (hence why it's not the default behaviour).

Sorry, didn't read it. Thanks!
It's a pity though

Do you plan to add the feature ?

Nope, as it's quite hard to implement and doesn't scale well if you have loads of events at the same time e.g 100 events that overlap, would be really hard to display in a user friendly way.

On 25 Aug 2016, at 22:08, Jean-PhilippeD<EMAIL_ADDRESS>wrote:
Do you plan to add the feature ?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

@mattlewis92 I don't understand your argument, why scaling is still an issue here. First scaling an event horizontally correctly has nothing to do with multiple events starting at the same time. If there are no overlapping events, the event should scale horizontal correctly. And if there are multiple events, then stack them - if it looks "ugly" that's not your problem.

@EvilBMP why don't you try a PR? :-) I'd love to have this feature too.


Curiosity how do u develop project by using V0.26/0.24?

First: console.log in Js is in vain.
Weex throw error is so obscure that I can only depend on Console.log for finding bugs.Now it useless, i can not understand the change of  Console.
Second: Error log is so chaos。
Even a little Js errors，u can see a lot of useless logs。Example
2019-10-17 15:47:10.646 26175-26201/com.ifaex_aos E/WeexCore: script_side_in_multi_process.cpp:314,futex lock pi failed: No such process, 80006682 26201 (0 0 0 80006682)
2019-10-17 15:47:10.647 26175-26201/com.ifaex_aos E/WXBridge: reportServerCrash instanceId:1 crashFile: /crash_dump.log
2019-10-17 15:47:10.647 26175-26201/com.ifaex_aos E/WXParams: getCrashFilePath:/data/user/0/com.ifaex_aos/app_crash
2019-10-17 15:47:10.647 26175-26201/com.ifaex_aos D/jsengine: callReportCrashReloadPage crashFile:/data/user/0/com.ifaex_aos/app_crash/crash_dump.log
2019-10-17 15:47:10.664 26175-26201/com.ifaex_aos E/WeexCore: wx_bridge.cpp:1138,class Name is com/taobao/weex/bridge/WXBridge
2019-10-17 15:47:10.664 26175-26201/com.ifaex_aos E/WeexCore: WXBridge_jni.h:1198,Java_WXBridge_reset_clazz class Name is com/taobao/weex/bridge/WXBridge
2019-10-17 15:47:10.684 26175-26201/com.ifaex_aos W/weex: app AvailMemory ---->>>1634
2019-10-17 15:47:10.702 26175-26304/com.ifaex_aos D/ReportCrash:  commitJscCrashAlarmMonitor errMsg SIG: SIGSEGV (11), fault addr: 0x0
    maps:
    b73d4000-b73d5000 r-xp 00000000 fd:06 231600                             /data/app/com.ifaex_aos-Eypc1EKUSA-6G84DkfJYkQ==/lib/arm/libweexjsb.so
    b73d5000-b73d6000 r--p 00000000 fd:06 231600                             /data/app/com.ifaex_aos-Eypc1EKUSA-6G84DkfJYkQ==/lib/arm/libweexjsb.so
    b73d6000-b73d7000 rw-p 00000000 00:00 0
    ea700000-eac00000 rw-p 00000000 00:00 0                                  [anon:libc_malloc]
    eac15000-eac16000 ---p 00000000 00:00 0                                  [anon:thread stack guard page]
    eac16000-ead12000 rw-p 00000000 00:00 0
    ead12000-ead13000 ---p 00000000 00:00 0                                  [anon:thread stack guard page]
    ead13000-eae0f000 rw-p 00000000 00:00 0
    eae0f000-eae10000 ---p 00000000 00:00 0                                  [anon:thread stack guard page]
    eae10000-eaf0c000 rw-p 00000000 00:00 0
    eaf0c000-eaf0d000 ---p 00000000 00:00 0                                  [anon:thread stack guard page]
    eaf0d000-eb009000 rw-p 00000000 00:00 0
    eb009000-eb00a000 ---p 00000000 00:00 0                                  [anon:thread stack guard page]
    eb00a000-eb106000 rw-p 00000000 00:00 0
    eb106000-eb107000 ---p 00000000 00:00 0                                  [anon:thread stack guard page]
    eb107000-eb203000 rw-p 00000000 00:00 0
    eb203000-eb204000 ---p 00000000 00:00 0                                  [anon:thread stack guard page]
    eb204000-eb300000 rw-p 00000000 00:00 0
    eb300000-eb680000 rw-p 00000000 00:00 0

Maybe the reason is the error using/import of:
onst logModule = weex.requireModule('sdk-console-log')
	const toastModule = weex.requireModule('modal')
......
..... invoke above code....

When I delete those  relativition code, the chaos errors is dismiss.
Through chaos logs , I don not what error happen to me and how to solve it.
I confirm  weex_group  take great pains on this project.
But the new version is more  difficult to use , compare to early version。

I'd suggest you verify whether it works on branch release/0.28 and you can build binary from source. If everything works well on release/0.28, then perhaps you can wait for that version.
As for the log you printed, it's a Linux SIGSEGV error. There is very little things we could do to make Linux SIGSEGV error more clear.

Now, console.log need switch, please see console-log

Now, console.log need switch, please see console-log

The web Demo throws: Failed to compile current project!
Can u fix the error?

I'd suggest you verify whether it works on branch release/0.28 and you can build binary from source. If everything works well on release/0.28, then perhaps you can wait for that version.
As for the log you printed, it's a Linux SIGSEGV error. There is very little things we could do to make Linux SIGSEGV error more clear.

When i develop my project, i can not mark mine error through  console log.
I hava to annotate code step by step, and rebuild weex bundle for confirm  it works correctly.
For example, i use  "let bus = new Vue()" as   EventBus for Weex-Vue-Template, and it works right in V0.18.
In V0.26, the same Weex-page throw chaos error, When i annotate the code of inject "$bus = new Vue()", Weex-page render successfully.
The log have little message about Vue, only tell the weex_js_xxxx  died/error/xxxx
It is to hard to find where the bug is.
I  remeber the error log about Vue  in .we file(the old weex version)，Console log  is clearly both in compile-file and run-weex-bundle.
I will try more with new version, even if  looks like first meet with Weex.😢

Now, console.log need switch, please see console-log

It really works. BTW, How can i use console.log() in V0.26 ? I can only read the weex-self log, without my customize  log

Thanks all. Let me explain something.
Console.log() is disable by default as it has a very bad performce impact. One can use it by enabling debug level in console-log.
@zsmjhtn Could you please write a document for Weex, so that other developers won't suffer from it anymore.

It works all right。只是print log方式有点“变化”
安卓0.28 Js log 是在独立进程打印的。
IDE 搜索log时，需要注意filter规则，不能选 show only selected application。要选择 NO filters
这样就能找到Js log


Update the Dashboard

Purpose
Update the Dashboard model to use a better approach when publishing a dashboard to the company or totally public.
Approach

I removed two boolean fields and created a char field with choices (easier to maintain and extend)
I added a filter in the view set for public
I removed two unused/unnecessary view sets, URLs and serializers for the Dashboard

Furter Info
Related ticket: https://github.com/Humanitec/TolaDataV2/issues/831

Coverage decreased (-0.008%) to 58.452% when pulling 426dfd06e9fd9862fcc57d7fd050968a653220ec on jefmoura:831-dashboard-filters into a777364da04969e5ce54b8ca19a111c69412d23c on toladata:dev-v2.


Disappearance of Custom Slash Command in Dropdown for Preview Version

Before submitting your bug report

[X] I believe this is a bug. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that reports the same bug
[X] I've seen the troubleshooting guide on the Continue Docs

Relevant environment info
- Continue: 0.7.54 Pre-Release
- VSCode: 1.85.1

Description
My custom slash command in version 0.7.54 (2023-12-16T05:19:30.77Z) no longer appears in the dropdown. This bug report is somewhat similar to #632 in that the command doesn't show in the dropdown, but it's otherwise unrelated.
The custom slash command functions well in version 0.6.15 (2023-12-08T21:46:59.053Z).

Should users switch from config.py to config.{ts,js} if they find a new .ts/.js file in their ~/.continue/ directory?
ls -1 ~/.continue/
# config.js
# config.json
# config.py
# config.ts
# continue.log
# …

To reproduce

Open your ~/.continue/config.py and write a custom slash command, for example, the one you see in #632.
Try to execute this custom slash command. It simply won't appear in the dropdown when interacting with Continue through the VSCode extension.

[!CAUTION]
No logs. The option Continue: View Continue Server Logs is gone.

Log output
No response

@LangLangBart Both of the things you have mentioned here are part of a migration away from the Python server, so the real solution will involve better education of the transition. Full details are in this Discord thread here
But abridged version to address this issue: config.py is replaced by config.ts, which has extremely similar syntax, and is then bundled into config.js. So config.ts is the one you want to edit. And continue.log also does not exist since all logs are naturally put into the developer tools console (cmd+shift+p, "Toggle Developer Tools").
 I actually made a built-in slash command for this if you'd like to use it as an example: https://github.com/continuedev/continue/blob/preview/core/commands/slash/commit.ts

Full details are in this Discord thread here

Thank you. The thread explained my dilema.

Yes, I was using the CommitMessageStep below, it placed the command on the terminal. It allowed for a quick review - I only had to press ⏎ Enter.

CommitMessageStep

config.py

"""
Continue Code Configuration
"""

import subprocess
from textwrap import dedent
from continuedev.core.main import ContinueCustomException, SetStep, Step
from continuedev.core.sdk import ContinueSDK
from continuedev.core.config import SlashCommand, ContinueConfig

class CommitMessageStep(Step):
    async def run(self, sdk: ContinueSDK):
        # Get the root directory of the workspace
        dir = sdk.ide.workspace_directory
        commit_command = "git commit --message"

        # Check if there are staged changes
        diff = subprocess.check_output(
            ["git", "diff", "--staged"], cwd=dir).decode("utf-8")
        # If there are no staged changes, run git diff
        if not diff.strip():
            diff = subprocess.check_output(
                ["git", "diff"], cwd=dir).decode("utf-8")
            commit_command = "git add . && git commit --message"

        # Only run the command if diff is not empty
        if diff.strip():
            # Ask the LLM to write a commit message, and set it as the description of this step.
            resp = await sdk.models.default.complete(
            f"{diff}\n\nPlease provide a brief, specific commit message (under 50 characters) about the changes above, using the Conventional Commits format: '<scope>: <message>'. Always include a scope. If the changes are only in markdown files, use 'docs' as the scope. Valid scopes include: build, ci, docs, feat, fix, perf, refactor, style, test, chore, revert, bump. If it's unclear, use 'chore' as the scope.")
            resp = resp.replace('\"', '').replace('\'', '').replace('`', '').replace('\\', '')

            await sdk.ide.runCommand(rf"{commit_command} '{resp}'")
            # yield SetStep(description=resp)  # Updates are yielded so the UI can be incrementally updated
        else:
            raise ContinueCustomException(
                title="nothing to commit",
                message="If you want to commit, you need to add the changes to the staging area."
            )

def modify_config(config: ContinueConfig) -> ContinueConfig:
    config.slash_commands.append(
        SlashCommand(
            name="commit",
            description="Generate a commit message for the current changes",
            step=CommitMessageStep,
        )
    )
    return config

I will try to move it to config.ts and close the ticket upon success.

I will try to move it to config.ts and close the ticket upon success.

The transition to the new format has been successful, but the new config.ts file doesn't allow running arbitrary child processes like config.py did. I will open a new feature request to see if the maintainer is interested in implementing this. In my case, it was about accessing the git diff and git diff --staged commands.

config.ts
async function* createCommitMessage(sdk: ContinueSDK) {
  const commitCommand: string = 'git add . && git commit --message'
  let diff = await sdk.ide.getDiff()
  if (diff) {
    const commitMessage = await sdk.llm.complete(
      `${diff}\n\nPlease provide a brief, specific commit message (under 50 characters) about the changes above, using the Conventional Commits format: '<scope>: <message>'. Always include a scope. If the changes are only in markdown files, use 'docs' as the scope. Valid scopes include: build, ci, docs, feat, fix, perf, refactor, style, test, chore, revert, bump. If it's unclear, use 'chore' as the scope.`)
    await sdk.ide.runCommand(`${commitCommand} '${commitMessage}'`)
  }
  else {
    yield 'nothing to commit'
    return
  }
}

export function modifyConfig(config: Config): Config {
  config.slashCommands?.push(
    {
      name: 'commit',
      description: 'Write a commit message',
      run: createCommitMessage
    }
  )
  return config
}

The underlying issue described in the report was invalid because the reason was the transition to the new config.ts format, thus closing this ticket.


alpha fitting in GeneralizedLocalExplainer

Hello,
I have a question about fitting alpha when lambda_ is not passed in GeneralizedLocalExplainer. Should alpha and chosen_coefs that are found using lars_path in https://github.com/marcotcr/lime-experiments/blob/master/explainers.py#L205 not used in https://github.com/marcotcr/lime-experiments/blob/master/explainers.py#L208 ?

Hello,
This is a point I've gone back and forth on.
I'm using Lasso for feature selection, in an effort to approximate the problem of finding the best w such that the number of nonzeros in w is less than K, which is why I'm computing the lars path. Now, the weights found with lambda such that |w|_0 = K are going to be biased (especially with the high lambdas required when K is small), which is why I'm learning new weights just with those features. I should probably have still added some regularization (I set lambda to 0 in the experiments in the paper).
Since doing these experiments, I've convinced myself that this lasso approximation is not ideal, and that I should use another feature selection method in order to approximate this first step. The reason is that regularization part of the objective ends up conflicting with the fit part, so that features with high weight end up not getting selected sometimes because they incur too much loss in the regularization part. This ends up producing non intuitive feature choices sometimes. Using this Lasso approximation still works, but I now think it is not the best.
On another note, please take a look at the package we are working on. This repository (lime-experiments) is frozen with the version I had when I did the paper experiments, for reproducibility. The version in this repository has better quality code, visualization options and other minor improvements.

Thanks for the explanation and the link to the package, I haven't noticed it :) I will close the issue now


feat: add vim-printer

A plugin to easily add print statements to code.
Would be awesome if you could merge this.

@jooooscha Thanks! Could you add license to overrides.nix?
https://github.com/m15a/nixpkgs-vim-extra-plugins/blob/a4f045ce978e88623602c67b2402b01d934e528f/overrides.nix#L33-L44
vim-printer looks like licensed under the MIT license:
https://github.com/meain/vim-printer/blob/55ab49179838d86f92fd847504cef3570000b7f3/plugin/vim-printer.vim#L5

Sure, no problem :)

Thanks!


[Enhancement] Link Utilities: Support regular expressions

Is your feature request related to a problem? Please describe.
Currently, there's no way to position 'not listed' links in Sorting. This would help with that, but may also be useful elsewhere.
Describe the solution you'd like
The option to use a regex instead of a simple match anywhere a pattern can be inputted.
For the above-mentioned sorting issue, I can put (Site1|Site2|Site3).
This can also be useful for pattern-matching in link renaming/removal.
Describe alternatives you've considered
Right now, I have sorting rules for all the one-off sites just to get them into the right position. Being able to set a position for 'not listed' links would be useful.

 Make the pattern field to be optionally a regex. Same for the sort order.


sorl-thumbnail stores the thumbnail in the KV store even if the original image gives a 404 error

Hi,
I have to work with external images which I don't control and some images give 404 errors because they have been removed.
I generate thumbnails like this in my template:
{% thumbnail obj.photo.get_absolute_url "360x270" crop="center" as im %} {{ im.url }}{% empty %}{% static "img/placeholder.png" %}{% endthumbnail %}
When the external photo gives a 404, I would expect sorl-thumbnail to fail silently (with THUMBNAIL_DEBUG = False of course) and not to put an entry in the KV store (I'd like to show the placeholder in this case !) but instead it saves a path in the KV store that doesn't exists because the thumbnail was not written to disk.
In the dev server console I can see the thumbnail exceptions:
2016-02-11 14:17:08,412  [sorl.thumbnail.base:105]  ERROR - HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/home/izi/VirtualEnvs/project/local/lib/python2.7/site-packages/sorl/thumbnail/base.py", line 103, in get_thumbnail
    source_image = default.engine.get_image(source)
  File "/home/izi/VirtualEnvs/project/local/lib/python2.7/site-packages/sorl/thumbnail/engines/pil_engine.py", line 48, in get_image
    buffer = BufferIO(source.read())
  File "/home/izi/VirtualEnvs/project/local/lib/python2.7/site-packages/sorl/thumbnail/images.py", line 140, in read
    return self.storage.open(self.name).read()
  File "/home/izi/VirtualEnvs/project/local/lib/python2.7/site-packages/sorl/thumbnail/images.py", line 204, in open
    return urlopen(self.normalize_url(name))
  File "/home/izi/VirtualEnvs/project/local/lib/python2.7/site-packages/sorl/thumbnail/compat.py", line 122, in urlopen
    return _urlopen(req, timeout=settings.THUMBNAIL_URL_TIMEOUT)
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
2016-02-11 14:17:08,412  [sorl.thumbnail.base:113]  WARNING - Remote file [http://example.com/foo.jpg] at [360x270] does not exist

My config is:

Ubuntu 14.04
Python 2.7
Virtualenv
Django==1.8.2
redis==2.10.3
sorl-thumbnail==12.3
Pillow==2.9.0

My settings:
THUMBNAIL_KVSTORE = 'sorl.thumbnail.kvstores.redis_kvstore.KVStore'
THUMBNAIL_REDIS_DB = 3
THUMBNAIL_REDIS_HOST = 'localhost'
THUMBNAIL_REDIS_PORT = 6379

FWIW, adding these two lines solves the problem for me:
diff --git a/sorl/thumbnail/base.py b/sorl/thumbnail/base.py
index 5a412e5..72cdbc8 100644
--- a/sorl/thumbnail/base.py
+++ b/sorl/thumbnail/base.py
@@ -114,7 +114,8 @@ class ThumbnailBackend(object):
                     # Will return working empty image type; 404'd image
                     logger.warn(text_type('Remote file [%s] at [%s] does not exist'),
                                 file_, geometry_string)
-
+                    if not thumbnail.exists():
+                        return None
                     return thumbnail

             # We might as well set the size since we have the image in memory

Any update on this ? still having the same issue. thumbnail empty block is not called at all even though the image does not exist. Instead something is fetched from the key value store.

I think there is a bug in the UrlStorage object.
I had an HTTP Error 404: Not Found.
After some research, it turned out that in UrlStorage
class UrlStorage(Storage):
    def normalize_url(self, url, charset="utf-8"):
        # Convert URL to ASCII before processing
        url = url.encode(charset, errors="ignore")
        url = url.decode("ascii", errors="ignore")
        scheme, netloc, path, qs, anchor = urlsplit(url)

        path = quote(path, b"/%")
        qs = quote_plus(qs, b":&%=")

        return urlunsplit((scheme, netloc, path, qs, anchor))

    def open(self, name, mode='rb'):
        url = self.normalize_url(name)
        python_version = platform.python_version_tuple()[0]
        user_agent = "python-urllib{python_version}/0.6".format(python_version=python_version)
        req = Request(url, headers={"User-Agent": user_agent})
        return urlopen(req, timeout=settings.THUMBNAIL_URL_TIMEOUT)

If the link address contains non-ascii characters, then the normalize_url method breaks the link.
url.decode("ascii", errors="ignore")
I just added a check if image url contains non-ascii and replace them with quote function from urllib.parse module
from urllib.parse import quote, urlsplit, urlunsplit

url_pat = re.compile(r'^(https?|ftp):\/\/')
if type(image_source) is str and not image_source.isascii() and url_pat.match(image_source):
    scheme, netloc, path, qs, anchor = urlsplit(image_source)
    image_source = urlunsplit((scheme, netloc, quote(path), quote(qs), quote(anchor)))

image = get_thumbnail(image_source, self.geometry_string, **self.options)


"Add Mistral-7B+RAHF-DUAL+LoRA to AlpacaEval"

very nice @LiuAmber LiuAmber

Thank you for adopting my results. However, I encountered a problem when using AlpacaEval2; it cannot evaluate all the results. I was able to solve this on AlpacaEval1 by setting the parameter --is_reapply_parsing True, but this does not seem to work on AlpacaEval2. Below is my evaluation command and the results:
alpaca_eval --model_outputs "Mistral-7B+RAHF-DUAL+LoRA.json" --output_path "Mistral-7B+RAHF-DUAL+LoRA_gpt4" ----annotators_config "weighted_alpaca_eval_gpt4_turbo" --reference_outputs "reference_outputs.json" --is_reapply_parsing True

| win_rate | standard_error | mode | avg_length | n_wins | n_wins_base | n_draws | n_total | discrete_win_rate | length_controlled_winrate
-- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --
Mistral-7B+RAHF-DUAL+LoRA | 16.03917 | 1.880604 | community | 1635 | 41 | 239 | 0 | 280 | 14.64286 | 21.57199
I would like to know how to resolve the issues I am facing with AlpacaEval2.


OOM issue when working with gradient

Description
Hello, I encountered an issue when I wanted to train on your model.
I simply remove the python decorator @torch.no_grad(), and this makes 2 problems:

The softmax function with the argument in_place=True is not differentiable. I fixed this problem by inputting in_place=False explicitly.
Out Of Memory. I tried to truncate the amino acid sequence, but it is always OOM until there are only 15 residues.

For more details, I am using a V100 32G GPU. Would you like to share how you solved these problems during training? Especially how many resources have been used to train OmegaFold, and what is the necessary GPU RAM to fit in the whole model?
To Reproduce

Remove the python decorator @torch.no_grad() in omegafold/__main__.py
Execute python main.py INPUT_FILE.fasta OUTPUT_DIRECTORY

Hi,
This code is specialized for inference only. As you can see, we have tried really hard to make it run under moderate GRAM requirement, at least for inference. During the entire training process, we have used a couple of hundreds Nvidia A100 with 80G of GRAM, so yeah it is indeed costly, but still we need to use gradient rematerialization as well.


add support for displaying esri metadata

resolves #4280

restricts fetching metadata when zoomed to 13 or tighter
adds a new line to the metadata panel when Esri imagery is active to display the individual provider (NAIP, DigitalGlobe, Municipality etc.)

we have info on imagery accuracy and resolution too. if thats interesting, just say the word.

we have info on imagery accuracy and resolution too. if thats interesting, just say the word.

This looks great!  I do think people would be interested in seeing accuracy and resolution too, so go ahead and add 👍
Maybe we should just rename getVintage to getMetadata.. The object that it passes to the callback could have all kinds of useful stuff in it.

pushed another commit to incorporate @bhousel's suggestions.

i didn't know how to internationalize '(m)' so i just hardcoded it.

You shouldn't add brackets around units.

You shouldn't add brackets around units.

thats fine by me. transifex would probably like it if i spelled out 'meters' anyway.

You shouldn't add brackets around units.

thats fine by me. transifex would probably like it if i spelled out 'meters' anyway.

Thanks @jgravois !  I'll clean up the strings, but this is mostly fine.  I'll merge it tomorrow morning.
FWIW the measurement pane and scale bar both have hardcoded unit strings for things like "m", "ft" etc, and nobody has complained yet. 👌

Just merged this, thanks again @jgravois!


Is it possible to use adapters from the hub?

Question
Hi, would it be possible to use adapters on top of a model using the js library?

Hi there! 👋 Do you have any specific examples/models in mind? 😇

Yes, I trained a few adapters on distilbert-multilingual-based-cased with a token classification head. So I have the adapter weights and head, which I can successfully load and use with adapters library and would like to package it up the model as a whole to be able to use in transformerjs (in onnx runtime).

In that case, you have two options:

Since the transformers library supports distilbert models for token-classification, you can save the model as a single DistilbertForTokenClassification model and upload it to the HF hub. You can then run the conversion script and it should work with transformers.js
If you would like to keep the two models separate, you can load the base model first, and load the second model with ORT, then pass the inputs between them yourself. I think it will also be great to support loading custom ONNX models (even those not exported with optimum or compatible with transformers.js).

Okay, I'll have a look at how to do save it as so far I wasn't unable to save the full model with the adapter and head to be later loaded as a whole.


new standard makes FormData not only writable

The spec was fleshed out to add has(), get(), getAll(), delete(), set(), entries(), keys(), values(), forEach() and Symbol.iterator() methods to allow inspection, iteration and modification.
https://www.chromestatus.com/features/5701572055007232

https://xhr.spec.whatwg.org/#formdata
I believe this is just extended version of Map or Set
So something along with this (but written in es5?) would be signifiant. Don't have to rewrite everything...
class FormData extends Map {
    constructor() {
        super()
    }
}

I've updated https://github.com/form-data/form-data/issues/124 to include the new methods. We can continue the discussion there. PR's welcome!


This is the same as issue https://github.com/LeastAuthority/kubetop/issues/33


enhancementAdd unit testing functionality

Proposed changes
Enhance error reporting by overriding gtest virtual functions to provide more detailed information
here's an example:
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from function_string_test
[ RUN      ] function_string_test.function_string_substr_test
/mnt/disk2/heshicheng/doris/be/test/vec/function/function_test_util.h:346: Failure
Expected equality of these values:
expect_data
Which is: "F"
column_data
Which is: "E"
at row 5
arg1 arg2 arg3
Error occurred in case5
/mnt/disk2/heshicheng/doris/be/test/vec/function/function_test_util.h:346: Failure
Expected equality of these values:
expect_data
Which is: "F"
column_data
Which is: "E"
at row 0
const arg1 arg2 arg3
Error occurred in case5
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall


🐛 [bug]: Unable to set URL of actionlint

🐛 What happened?
Environmnet:

Github Enterprise Server
actions-sync to sync actions to a local org in our github enterprise

The action is trying to look for the latest version of rhysd/actionlint on our local GHES instance. Of course it is not there. I don't see a way to set the url to point at https://github.com/ instead.
🔬 How to reproduce?
See code sample/log
🏗 Code Sample / Log
Workflow:
  actionlint:
    name: 'ActionLint'
    runs-on: [self-hosted]
      steps:
        - uses: actions/checkout@v3
        - uses: axon-actions/actionlint@v1

Output:
RequestError [HttpError]: Not Found
    at /runner/_work/_actions/actions/github-script/v6/dist/index.js:6842:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async getToolReleaseLatest (eval at callAsyncFunction (/runner/_work/_actions/actions/github-script/v6/dist/index.js:15143:16), <anonymous>:58:20)
    at async eval (eval at callAsyncFunction (/runner/_work/_actions/actions/github-script/v6/dist/index.js:15143:16), <anonymous>:77:7)
    at async main (/runner/_work/_actions/actions/github-script/v6/dist/index.js:15236:20) {
  status: 404,
  response: {
    url: 'https://<redacted url for GHES>/api/v3/repos/rhysd/actionlint/releases/latest',
    status: 404,
    headers: {
      'access-control-allow-origin': '*',
      'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
      connection: 'close',
      'content-encoding': 'gzip',
      'content-security-policy': "default-src 'none'",
      'content-type': 'application/json; charset=utf-8',
      date: 'Wed, 01 Nov 2023 16:51:34 GMT',
      'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
      server: 'GitHub.com',
      'strict-transport-security': 'max-age=31536000; includeSubdomains',
      'transfer-encoding': 'chunked',
      'x-content-type-options': 'nosniff',
      'x-frame-options': 'deny',
      'x-github-enterprise-version': '3.8.10',
      'x-github-media-type': 'github.v3; format=json',
      'x-github-request-id': '3cb06c66-301c-488c-9774-5f7382604551',
      'x-runtime-rack': '0.024953',
      'x-xss-protection': '0'
    },
    data: {
      message: 'Not Found',
      documentation_url<EMAIL_ADDRESS>    }
  },
  request: {
    method: 'GET',
    url: 'https://<redacted url for GHES>/api/v3/repos/rhysd/actionlint/releases/latest',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'actions/github-script octokit-core.js/3.6.0 Node.js/16.20.1 (linux; x64)',
      authorization: 'token [REDACTED]'
    },
    request: { agent: [Agent], hook: [Function: bound bound register] }
  }
}
Error: Unhandled error: HttpError: Not Found

🌌 Environment (actionlint action)
1.0.2
🌌 Environment (actionlint)
1.6.26
🌌 Environment (GitHub Runner OS)
Linux
📷 Screenshots
No response
📈 Expected behavior
It would by default pull from github.com, and allow you to set the URL of your github instance in case you do want to use a local version of rhysd/actionlint
📎 Additional context
No response
📜 Code of Conduct

[X] I agree to follow this project's Code of Conduct.

@bhundven hmm good idea, will try to investigate how to handle it, because currently Action uses native GitHub SDK to determine actionlint version and the last thing what I want to do is to write own logic to do that.

@DariuszPorowski I got some ideas on how to fix this. I'll try and get a PR together.

@bhundven Did you ever find the time to investigate this issue further or did you find a workaround? I'm in a similar situation.

@frederikb No, I haven't had time.

I think this depends on #11

@frederikb @bhundven just working on potential solution. In theory should works. Unfortunately, I do not have access to GHE so cannot fully test.
https://github.com/raven-actions/actionlint/pull/22
p.s.
@bhundven It does not depend on https://github.com/raven-actions/actionlint/issues/11 composite/js action after all use the same GH api.

Thanks, @DariuszPorowski . I'll try to find some time next week to look through the changes and test drive it on a GHES instance.


Error "Capture requires extension 'VK_EXT_tooling_info' which is not supported"

Description
I'm trying to debug a simple Vulkan triangle application (which is buggy). Capture overlay seems to work, but when I close the application I got a popup with this error message: "Failed to open capture for replay: current hardware not supported or incompatible with captured hardware".

Steps to reproduce

launch my app with renderdoc
capture a frame
close the app / try to open the capture with renderdoc

Environment

RenderDoc version: 1.6
Operating System: Windows 10
Graphics API: Vulkan 1.2

I've attached the diagnositc log and a capture:
rdoc_err.log
capture.zip

There was a bug in v1.6 where use of VK_EXT_tooling_info in an application would be available during capture but then fail to be ignored properly on replay when nothing else provides the extension. Either temporarily disable use of that extension or run a recent nightly build of RenderDoc where the bug has been fixed.
I also note that you are forcing use of a specific GPU on replay. While this is possible it's highly inadvisable for Vulkan where captures from one GPU are rarely portable to another. It's strongly recommended that you leave the GPU selection as default and choose the physical device you want to use in your application - RenderDoc will then use the same physical device on replay.

Ok, just try a nightly build and it works fine, thank you !
(and for the tip about forcing a GPU for capture)


Documentation fixes

Notes
It looks like somebody else fixed a bunch of the "space between the header" just a little bit earlier, so this has less changes to it.
Testing
viewed locally

Thanks for the fixes.
Please note that we are in the process of moving our site to https://spinnaker.readme.io/ (but not done yet).
LGTM.


Set without GPO?

It would be nice to know how to enable this setting via Registry or PowerShell.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e54fd0e4-8388-8c8d-6e0b-aa24fc6449b4
Version Independent ID: 14f950fd-3333-d362-af35-a313854fab9a
Content: Create global objects (Windows 10)
Content Source: windows/security/threat-protection/security-policy-settings/create-global-objects.md
Product: w10
Technology: windows
GitHub Login: @Justinha
Microsoft Alias: justinha

@officedocsbot assign @mypil

@seilermi - Thank you for submitting feedback.
I will get this issue over to the Win10 ITPro writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@mypil , I could not find an example for PowerShell or Registry edit online. Can we please ask from the MS team?

Hello @seilermi
Thanks for your feedback. We really appreciate it.
Currently, is not possible to perform the actions described in the article using Ps or Registry.
The reason behind this is that security information is stored in templates (.inf files) or in the Secedit.sdb database.
I encourage you to look into this resources
https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/security-policy-settings
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/secedit
Hope this information helps you.

@seilermi - From our understanding, the issue you raised has been answered by get-itips. If you feel it hasn't been answered, please re-open this issue.
Thank you for your contribution to make the docs better! Much appreciated!

@officedocsbot close

Thank you for answering very quickly.


python310Packages.pyduke-energy: 1.0.0 -> 1.0.1

Description of changes
https://github.com/mjmeli/pyduke-energy/releases/tag/v1.0.1

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

2 packages built:

python310Packages.pyduke-energy
python39Packages.pyduke-energy


[Prototype] Support ActivityLinks

Currently, Azure SDKs produce a special kind of Activities that carries links in a
public IEnumerable<Activity> Links { get; }

property.
Migration to ActivitySource based activities would result in the same information being carried in the
https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.activity.links?view=net-5.0
This PR add support for collecting both ways of representing links.

cc @lmolkova

/AzurePipelines run

@rajkumar-rangaraj any news on this? The .NET 5 activity link support has shipped in Azure SDKs


How to use livekit with images

Hi,
I'm building a conversational tool that largely relies on analysing images. i love the low latency of livekit and it's scalability but i couldn't find any examples of livekit using images.
Whether natively supported or thru function calling is it possible for me to allow image inputs? Any examples or code snippets would be appreciated.
thanks!

What do you mean image input, push a video track of a static image to livekit server? Either canvas with js-sdk or python sdk can do that.

Hi @cnderrauber ,
Thanks your for your response! I was looking to basically pull a frame from a video feed.
So essentially, I want to pass the client-side video feed and the audio feed to the LiveKit room and grab a frame from it whenever a particular function call gets triggered (like a get_image function call). I
s that possible to do with the Python SDK? Do you have specific code examples that I could look at?
Or maybe you could give me a reference to a function in the SDK that I can take a look at. Thank you.

@Shoshin23 You can look at the python sdk sample https://github.com/livekit/python-sdks/tree/main/examples/face_landmark, it grabs image from video track to detect face landmarks


Add option to prompt user for installs when privileged

When Accrescent is privileged, the OS doesn't prompt the user when installing an app. This may be undesirable since the user could accidentally press "Install" on unwanted apps. This commit allows the user to force OS prompts for installations when Accrescent is privileged. Note this doesn't affect app updates i.e. pressing an "Update" button while the option is enabled will not prompt the user.
The option is disabled by default.

To test before merging:

[ ] Verify that toggle is disabled by default when Accrescent is privileged
[ ] Verify that installing new apps requires user action when toggle is enabled and Accrescent is privileged
[ ] Verify that updating existing apps does not require user action when toggle is enabled regardless of whether Accrescent is privileged

Privileged - you mean it's put in /system/priv-app?

Yes, for INSTALL_PACKAGES and DELETE_PACKAGES.

Finally, I've build the app, created Magisk module which installs Accrescent as the system priv-app with privileged permissions to be able to test this PR.

Toggle is enabled by default when Accrescent is privileged. I've tripple-checked that by reinstalling and clearing cash and data.
Installing new apps requires user action when toggle is enabled and Accrescent is privileged. Obviously it installs apps without prompt when the switch is disabled.
Not able to test for obvious reason.

Although app is priviliged, it still needs install unknown packages permission to be granted manually.

@PatrykMis First of all, thank you for taking the time and effort to test this.

Toggle is enabled by default when Accrescent is privileged. I've tripple-checked that by reinstalling and clearing cash and data.

I looked over my PR again and I see the issue. When I have time, I'll rebase and fix it.

Installing new apps requires user action when toggle is enabled and Accrescent is privileged. Obviously it installs apps without prompt when the switch is disabled.

Great!]

Not able to test for obvious reason.

Once everything else works, I can bump the version of the testing KeePassDX build so you can test updates.

Although app is priviliged, it still needs install unknown packages permission to be granted manually.

Are you asked to grant it, and do you need to grant it for Accrescent to work? If so, under what circumstances (installing/uninstalling and toggle enabled/disabled)?

Forgot to add that whether the switch is enabled or disabled, Accrescent uninstalls apps always silently without any prompt or notification. This could be more dangerous than installing app without confirmation.

I forgot about this when I initially made the PR, but I agree. Unfortunately, there isn't an equivalent API for making the OS ask for confirmation when uninstalling packages, so I think we'll need to add our own custom confirmation prompt.

Are you asked to grant it, and do you need to grant it for Accrescent to work? If so, under what circumstances (installing/uninstalling and toggle enabled/disabled)?

It asks for allowing unknown sources after download and before installation, only when toggle is enabled. I can uninstall without it granted regardless of the switch.
I'm afraid that custom confirmation prompt could be needed for installing too, due to above situation.

I looked over my PR again and I see the issue. When I have time, I'll rebase and fix it.

@PatrykMis The toggle should now by disabled by default in privileged mode.

The toggle should now by disabled by default in privileged mode.

Unfortunately, it's still enabled by default.

Round 2. Should actually be fixed now.

Yes, everything works as expected.

Great. I'll go ahead and add a confirmation dialog for uninstalls, then we can test it along with updates and call it good for merging.

My only other concern is that using the OS dialog for installation and a custom dialog for uninstallation is inconsistent, but that's an implementation detail that can be changed later, so I'm not concerned about it for this PR.

I've thought about this behavior more and I think there's another (better) reason to use a custom dialog for installation. If the OS is requiring REQUEST_INSTALL_PACKAGES with the option enabled, it's most likely considering apps as installed from a third-party source, meaning UserManager restrictions could block installations even when Accrescent is privileged.
I'm still not concerned about it for this PR, but it might be worth filing an issue with AOSP because this behavior doesn't really make sense.

Added the uninstall confirmation dialog. Shouldn't need much testing. Note it's not tied to the toggle and is instead always enabled in privileged mode by design.

Great. Dialogue is shown, buttons are working as expected, switch is off by default, everything ok.

Just one note: Uninstall button for Accrescent when it is privileged doesn't make sense as it simple cannot be uninstalled.

Great. Dialogue is shown, buttons are working as expected, switch is off by default, everything ok.

Cool. All that's left is testing updates then (which I'm 99% sure will work). I can upload an update to KeePassDX whenever.

Just one note: Uninstall button for Accrescent when it is privileged doesn't make sense as it simply cannot be uninstalled.

Thanks! I didn't think of that. I'll address it after this is merged.

I can test it today and tomorrow. Are you going to notify when you bump version or you want to do it silently and check if the app updated it automatically without any issues?

I'll let you know when I bump the version. I'm sure enough that automatic updates will be fine, but the UI code around manual updates is a bit more complicated so I mainly want to test that.

The update was completed without problems, although i have to trigger it manually ("updates" tab then press the button). There's another issue with TalkBack which doesn't read any label for update button and open button but I'll make eventually another PR.

Sweet! Thank you so much for testing this.


docs(tutorial): Create tutorials for Paymaster/Wagmi + OCK Theme component

What changed? Why?

New tutorial: How to integrate Paymaster into any Wagmi project
New tutorial: How to add a custom theme into OCK components
Added images to support each tutorial

Notes to reviewers
How has it been tested?

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1

Review Error for ericbrown99 @ 2024-11-09 18:58:53 UTC
User failed mfa authentication, see go/mfa-help


file format error

when sending to printer  adventurer gives file format error
even with extension changed to .G

Hi,
I might need a little more info to get to the bottom of what's happened here, so some questions for you :)
What are you running the app on? (macOS, Windows 7, 8, 10..)?
What version of the app are you using (shown on the about screen)
Did you download the app directly, or from the app store?
Which printer are you using it with (Flashforge Adventurer 3, Flashforge Adventurer 3 Lite, Monoprice Voxel, Bresser Rex..)?
What is the printer firmware version
When you say not valid, is it saying "Failed to connect to printer, is the address correct"? or some other error
Does force closing the app and restarting fix this issue, or did it work one ever?
If you're using version V1.2 can you attach the error log file please. You can find the log files for the app at this location:
Windows: C:/Users//AppData/Roaming/adventurer-client
macOS: ~/Library/Logs/adventurer-client
Thanks
Andy

I have win 10 newest update AMD Ryzen 3900x gtx1080ti have the ff adv3,
with newest firmware update.
newest flashprint 5, and also have cura 4.12 beta cused both with all file
extension changes.
Tried .g and .gx I'm away from the PC I use for printing and can upload a
log when I get to it tonight.
The printer screen spits..... error with file extension.
I have since been just using flashprint but would love to use cura with it
since the ff finder extension in marketplace. Also there used to be a coder
on GitHub that was able to get cura to send the file directly to the
printer but that's neither here or there since it's busted lol.
On Mon, Nov 8, 2021, 6:06 PM Andy Bradford @.***> wrote:

Hi,
I might need a little more info to get to the bottom of what's happened
here, so some questions for you :)
What are you running the app on? (macOS, Windows 7, 8, 10..)?
What version of the app are you using (shown on the about screen)
Did you download the app directly, or from the app store?
Which printer are you using it with (Flashforge Adventurer 3, Flashforge
Adventurer 3 Lite, Monoprice Voxel, Bresser Rex..)?
What is the printer firmware version
When you say not valid, is it saying "Failed to connect to printer, is the
address correct"? or some other error
Does force closing the app and restarting fix this issue, or did it work
one ever?
If you're using version V1.2 can you attach the error log file please. You
can find the log files for the app at this location:
Windows: C:/Users//AppData/Roaming/adventurer-client
macOS: ~/Library/Logs/adventurer-client
Thanks
Andy
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/andycb/AdventurerClientJS/issues/197#issuecomment-963654065,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APS6SN2DCSQC4GDFOVTGIUTULBJXPANCNFSM5HMMBJHA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I have the same error on macOS, Big Sur 11.6
Printer: Flashforge Adventurer 3
Client Version: 1.3.142

Thanks both for the info. I think Flashforge have changed something with the latest firmware on the printer (possibly by accident, or to lock this app out). I'm going to keep this bug open while I look for more data, but I don't have a good solution right now. If you're able to rollback the firmware, that might help.

Debug logging gives me the following after all the instructions:
<<<\n
<<<~M29\n
<<<~M119\n
<<<~M119\n
<<<~M119\n
<<<~M119\n
<<<~M119\n

CMD M29 Received. \nDone saving file. \nok \n
<<<~M23 0:/user/file.gcode\n
CMD M23 Received. \nFile opened: file.gcode Size: 0 \nFile selected \nok \n
<<<~M119\n
<<<~M119\n
CMD M119 Received. \nEndstop: X-max:1 Y-max:0 Z-max:0 \nMachineStatus: READY \nMoveMode: READY \nStatus: S:1 L:0 J:0 F:0 \nLED: 1 \nCurrentFile: \nok \nCMD M119 Received. \nEndstop: X-max:1 Y-max:0 Z-max:0 \nMachineStatus: READY \nMoveMode: READY \nStatus: S:1 L:0 J:0 F:0 \nLED: 1 \nCurrentFile: \nok \n

It looks from that log that the file was correctly transferred to the printer - The printer checks the integrity of everything we send it to, and the app screws up the printer normally rejects it here.
So it's likely that it's the content of the file the printer dislikes, which is what I've seen from others on this latest firmware.
One contributor was able to make some progress by changing all the temperature values to remove the .0: https://andybradford.dev/2020/01/12/using-the-monoprice-voxel-with-ultimaker-cura/#comment-717
Are you able to try that?
Andy

Oh, also: If you want to isolate the slicing from the app, you can drag the gcode file from cura in to flashprint, and use it to transfer without re-slicing.

Oh, also: If you want to isolate the slicing from the app, you can drag the gcode file from cura in to flashprint, and use it to transfer without re-slicing.

It wouldn't let me just drag it in, found another limitation was the 32char limit on file name. However I was able to use the exact same file (once renamed) through the multi-printer-control function on flashprint to send the gcode file over.
I will say that aside from flashprint's limitations I greatly prefer it to cura. Cura is way uglier, has some weird bugs, and my prints from flashprint just tend to turn out nicer.


Right Click on Extension Search > Peek causes freeze

VSCode Version: 1.48.0
OS Version: Windows_NT x64 10.0.19041

Steps to Reproduce:

Right Click 'Search Extension in Marketplace'
Goto Peek, click on peek (Before the Peak menu shows) [Edit 2020/08/18: added context]
Repeat 2&3 Until freeze (Might Take a couple of times.)
Wait for the Freeze Notice

Does this issue occur when all extensions are disabled?: Yes/No
Yes, Still happens

I have the same problem

This is also there in settings editor

Assigning to @roblourens since this is a bug in Suggest enabled input.

I'm not sure about the freeze, I don't repro that. But @jrieken can you just make sure that peek command won't show up in the simple editor input? I changed the Command Palette one to have when: EditorContextKeys.editorSimpleInput.toNegated(). You can add that or it looks like other peek menu registrations have some conditions on when they are valid.

Hm, this must be a regression from @joaomoreno's submenu changes as the Peek-menu is quite old already. Will look into a fix, also marking as candidate

I have pushed a change so that the sub menu doesn't show anymore. Tho, I cannot reproduce the freeze. Not on mac nor on windows. I wonder if that's related to the welcome page not showing recent entries... Can you try without the welcome page or with a different workspace?

Adding @sbatten for more insights and FYI. You might know more about the crash potential - it seems that sometimes the Peek menu doesn't expand and than the crash happens. In my testing (win/mac) I wasn't able to repro and got the menu with a single, disabled entry

@jrieken That is the cause,  You need to left click, then right click, don't wait for the peak to show.  I just realized that was the exact step to reproduce the error.

Yep, It doesn't have to be from the search bar, it can be anywhere.

Not sure if this is it, but seems to be it.
from https://github.com/microsoft/vscode/blob/master/src/vs/editor/contrib/peekView/peekView.ts
protected _onTitleClick(event: IMouseEvent): void {
		// implement me
	}

Thanks @topherhoffman 👏 Once I am fast enough I can reproduce. There is an endless loop creating the submenu and trying to focus an item. Not quite sure why this only happens when being fast...

I believe this was introduced via https://github.com/microsoft/vscode/commit/182db07de2745fe3a6369f4ad80ae930e006a99b because it adds the preventLoopNavigation which weakens the only loop abort condition. That you have to be fast is because 250ms after hovering an element is focused (via a different code path) and you need to click fast than that.

I have cherry-picked my commit fa4ee50 onto the release branch which should make this not happen anymore - tho the underlying issue and the potential for this endless loop remains

Thanks for cherry picking. Due to that closing this issue so we get it verified for the release.
As for the underlying issue and endless loop potential I suggest that either you or @sbatten create a new issue.

To verify:

open extensions viewlet (alternatively SCM or settings editor)
right click into the editor/input
make sure that there is no peek menu


SR-1101 : clang 3.9 doesn't allow typeof on bit-field

Avoid using an expression whose type is a bitfield in
macros like slowpath or dispatch_assert that internally
use typeof on their argument expression.

Problem reported by team porting libdispatch to Linux S/390 where they need to use latest version of clang (https://bugs.swift.org/browse/SR-1101 for details).

No longer needed; closing.


HBASE-25199 Remove deprecated HStore#getStoreHomedir methods

Remove the deprecated methods HStore#getStoreHomedir(Path, RegionInfo,
byte[]) and HStore#getStoreHomedir(Path, String, byte[]).

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 33s
Docker mode activated.

Any update here @HorizonNet  ? Thanks boss.

Thanks for the reminder @saintstack. Did the requested changes and updated the PR to the latest master.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 28s
Docker mode activated.


feat: Dark Themed Banner Component'

closes issue #95
screen:

Hey @mr-muhammad-rehan Thanks for your work I will Add this component to the CTA section it fit in that section. 😄

Thanks!
Will definitely contribute further more versions of this component.


Empty requirement causes install failure

After using cargo generate-rpm I end up with an rpm that has an empty "requires":
[root@6794b4c1c5ee tmp]# rpm -q --requires /cli/target/cloudtruth-0.2.0-1.x86_64.rpm

/bin/sh

This causes install to fail:
[root@6794b4c1c5ee tmp]# rpm -i /cli/target/cloudtruth-0.2.0-1.x86_64.rpm
error: Failed dependencies:
         is needed by cloudtruth-0:0.2.0-1.x86_64

Any idea what could be causing this?

I found I had to set auto-req = "no" and provide my own dependencies to work around this.

@jeking3 as you mentions, workaround is to disable the automatic dependency process with setting auto-req = "no".
If /usr/lib/rpm/find-requires (rpm builtin program) does not exist on your system, cargo-generate-rpm executes ldd and parses its output. So, could you please share the output of ldd release/release/cloudtruth?

I'll close this out because it appears to be working now.
I should mention I run this in the rust:1.52.1-alpine container (to make the RPM), so perhaps that's part of the problem:
On alpine:
bash-5.1$ ldd !$
ldd target/release/cloudtruth
        /lib/ld-musl-x86_64.so.1 (0x7f6ed8af3000)
        libssl.so.1.1 => /lib/libssl.so.1.1 (0x7f6ed8387000)
        libcrypto.so.1.1 => /lib/libcrypto.so.1.1 (0x7f6ed8106000)
        libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f6ed8af3000)

bash-5.1$ cargo-generate-rpm
/lib/ld-musl-x86_64.so.1: cannot load -v: No such file or directory

Then on centos 8:
[root@a680fea297fb cli]# rpm -q --requires target/generate-rpm/cloudtruth-0.5.4-1.x86_64.rpm
rtld(GNU_HASH)
/bin/sh

[root@92a65b653b44 /]# rpm -i /cli/target/generate-rpm/cloudtruth-0.5.4-1.x86_64.rpm
[root@92a65b653b44 /]# cloudtruth --version
cloudtruth 0.5.4
[root@92a65b653b44 /]#

The -v error is odd, but what's coming out now seems to be working.  I tested with v0.4.0 of cargo-generate-rpm.


fix(testgrid): use openebs for weave to flannel migration test

What this PR does / why we need it:
Tests are failing
https://testgrid.kurl.sh/run/STAGING-daily-0c5e749-2023-04-05T01:22:07Z?kurlLogsInstanceId=mbqxeppnwemxiriw&nodeId=mbqxeppnwemxiriw-initialprimary
2023-04-05 07:01:18+00:00 Copying data from default PVCs to longhorn PVCs
2023-04-05 07:01:18+00:00 Copying data from kotsadm-rqlite-kotsadm-rqlite-0 (pvc-04598ff6-37fa-4705-a076-b12e48c75631) to kotsadm-rqlite-kotsadm-rqlite-0-pvcmigrate in default
2023-04-05 07:01:18+00:00 Creating pvc migrator pod on node mbqxeppnwemxiriw-initialprimary
2023-04-05 07:01:18+00:00 waiting for pod migrate-kotsadm-rqlite-kotsadm-rqlite-0 to start in default
+ KURL_EXIT_STATUS=124

Customers should no longer be migrating to longhorn. I am trying to eliminate the possibility that longhorn is the issue and instead use openebs.

there are no deps added here. ignoring fossa failures.


For openssl windows compil

Without this changes I go errors du compilation or link step.

(oops, the validation, it was me. I was connected to musicJenkins to do something with our Jenkins)
This could be useful, i am currently trying to compile music on Windows through Jenkins! :)


[V1.5] Fix clear task

Coverage decreased (-0.05%) to 86.333% when pulling 3436b3c0b12cfc55272bdd7ddf38581358d8fdbe on JYL123:change_storage_file into 75c796c96973fc5ca907b3173916c5f08941060a on CS2103AUG2017-W11-B1:master.

Coverage decreased (-0.05%) to 86.333% when pulling 5336e701fac7368b5bde7afaaadbe3ae7144324f on JYL123:change_storage_file into 75c796c96973fc5ca907b3173916c5f08941060a on CS2103AUG2017-W11-B1:master.


celeste: 0.5.2 -> 0.5.8

Description of changes
Diff: https://github.com/hwittenborn/celeste/compare/v0.5.2...v0.5.8
Changelog: https://github.com/hwittenborn/celeste/blob/v0.5.8/CHANGELOG.md

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

1 package built:

celeste


formatAmount depending on user

Hi,
Cashier::formatAmount($amount, $currency); is really great but it searches for the locale in the config file, it not depends on the User.
Currently I do something like this :
$money = new Money($amount, new Currency($currency));
return $money->format($user->country);

Would you consider to add a parameter in your formatAmount method for the locale ? (or the country).
Thanks a lot
PS : now there is a preferred_locales into the Stripe Customer object, maybe this can be taken into account.

Hmm, yeah a third parameter definitely could work.
I don't think that using the Stripe customer's preferred_locales as the default would be wise given the fact that there could be numerous reasons to do this in the app itself. Also: in the places where we use this method in Cashier this isn't always available.

You're right.
A great option would be to call a method in the Billable trait that could be overriden on the User model.

@pierrocknroll I think that's something you can easily add yourself though. I don't see the need to add that natively in Cashier.

payment not working after upgrade cashier 10
showing below error   -
message: "No such payment_method: tok_1FPNJyIgbLu2cRMdi1GtRf2X"
Any idea how to solve it?

@damayantinama do you see something in common between your problem and this issue ? Please read the docs, especially the UPGRADE doc. And go elsewhere to complain.

Sent in a PR: https://github.com/laravel/cashier/pull/888

Merged

Thanks a lot @driesvints :)


Add settings_category to integrate_kitsu_note

settings_category was missing in integrate_kitsu_note so it couldn't read the Ayon kitsu settings and always ended up with the set settings:
set_status_note = False
note_status_shortname = "wfa"

This PR adds settings_category = "kitsu" so the plugin now reads the settings from Ayon

@martastain Could you take a look at this? Would love to get this merged as it's a pretty bad bug.

This PR addresses this bug with the settings, it would be great to have it merged.


About Mysql Database cleaning in last 3.7 release

Hello, Tananaev i want to answer if the bolded  forward commands can be used in last Traccar  3.7 release and can you tell me how should be applied.  I must stop service and add it to conf xml file, then start again? Im correct?. Thank you
DELETE FROM positions WHERE time < DATE_ADD(NOW(), INTERVAL -3 MONTH);
UPDATE devices SET latestPosition_id = NULL WHERE latestPosition_id NOT IN (SELECT id FROM positions);

If you are using correct config for version 3.7, it already has similar query. You can use database.positionsHistoryDays config parameter to set number of days that you want to keep history for.

Can you tell me please how should i do this on 3.10 or 3.11 vesion. Im already try several ways and get sintaxis and other errors.
PD: Im using Mysql database

Something like this:
DELETE FROM positions WHERE serverTime < DATE_ADD(NOW(), INTERVAL -1 MONTH);
UPDATE devices SET positionId = NULL WHERE positionId NOT IN (SELECT id FROM positions);

i get
Fallo al ejecturar SQL : SQL DELETE FROM positions WHERE serverTime < DATE_ADD(NOW(), INTERVAL -1 MONTH); UPDATE devices SET positionId = NULL WHERE positionId NOT IN (SELECT id FROM positions); falló: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UPDATE devices SET positionId = NULL WHERE positionId NOT IN (SELECT id FROM pos' at line 1

I guess whatever you use to execute queries doesn't support multi-queries, so you have to execute them one by one.

Ahhh you right. but how can do this automatically. In Cron maybe? Im using VPS with debian 7

What about positionsHistoryDays parameter?


change default keyboard

hi, how can i change default keyboard from English to another language such as persian, because i read the code and realize that the code have persian keyboard and font ,please help me

I don't see anything in the core library related to a Persian keyboard; where did you see this?

in lvgl/src/lv_misc/lv_txt_ap.c

Oh, that's just for handling the rendering of Persian characters. There isn't a built-in Persian keyboard layout; you'd have to create one yourself.

do you have any document or guidance to help me for this?

See here: https://docs.lvgl.io/latest/en/html/widgets/keyboard.html#new-keymap

thanks a lot


How to close the connection from client side

I am getting the responses but need to stop the event source on a particular condition how can we do it from client side?

const controller = new AbortController()
const signal = controller.signal
pass signal the object from the second parameter of fetchEventSource()
When you want to close the connection, just call controller.abort()
https://stackoverflow.com/questions/31061838/how-do-i-cancel-an-http-fetch-request

@ChepteaCatalin this doesnt work. Im not sure yet what the solution is but I checked above and after controller.abort() call messages are still there. onmessage callback is still firing.

Curious about this too. Aborting the fetch request didn't seem to work for me. Workaround I use is to throw an error in the onerror and onclose functions
        onclose() {
          // do something
          throw new Error(); // hack to close the connection
        },
        onerror() {
          // do something
          throw new Error(); // hack to close the connection

@ChepteaCatalin this doesnt work. Im not sure yet what the solution is but I checked above and after controller.abort() call messages are still there. onmessage callback is still firing.

Make sure your controller or signal are the same. Especially in React.

Calling controller.abort() in onerror can't cancel retries with this library.
onerror is called here, after which the retry timer will be reset when it doesn't throw, without checking for aborted again:
https://github.com/Azure/fetch-event-source/blob/a0529492576e094374602f24d5e64b3a271b4576/src/fetch.ts#L129-L136
The retry timer will call create where a new AbortController is created that starts non-aborted:
https://github.com/Azure/fetch-event-source/blob/a0529492576e094374602f24d5e64b3a271b4576/src/fetch.ts#L102-L104
Retries will be stopped if controller.abort() was called in onopen, onmessage or onclose, but calls in onerror won't affect it.
Throwing in onerror is absolutely the correct thing to do to stop the request, which is also shown in the readme:
https://github.com/Azure/fetch-event-source/blob/a0529492576e094374602f24d5e64b3a271b4576/README.md?plain=1#L83-L86

its easy to in modern browsers follow this.
 const controller = new AbortController()
 const { signal } = controller
 await fetchEventSource('your API', {
	onmessage(ev) {
	  console.log('data', ev.data)
	},
	onclose() {
	 // do something
       },
       onerror() {
	// do something
       },
        signal,
   })

and When you want to close the connection, just call controller.abort()

its easy to do in modern browsers follow this.

Yes, it's easy and it's just as documented, except it doesn't close the connection, at least not in my case.

For those having the issue in React, this works:
const [ abortController, setAbortController ] = useState(new AbortController());

fetch(
   signal: abortController.signal
   // ...
)

function stopResponseSSE() {
    abortController.abort();
    setAbortController(new AbortController());
}

As June mentioned, "once an instance of AbortController is used, we need to create a new instance to reset the value."
In React, you most likely will need to set the state with a new Abort Controller.
Hope this helps!

For those having the issue in React, this works:
const [ abortController, setAbortController ] = useState(new AbortController());

fetch(
   signal: abortController.signal
   // ...
)

function stopResponseSSE() {
    abortController.abort();
    setAbortController(new AbortController());
}

As June mentioned, "once an instance of AbortController is used, we need to create a new instance to reset the value."
In React, you most likely will need to set the state with a new Abort Controller.
Hope this helps!

Better to use a useRef to store the abortController instead of useState as you'll end up triggering a (likely undesired) re-render when you call setAbortController(new AbortController());

As @Systemcluster said, the only thing that works to stop the retry functionality is to throw an error in the onerror callback.
If this is the correct thing to do, it would probably help to add a small section to the readme about this (I would create a PR however I am not sure if this is the expected way to handle this cause or if throwing an error just happens to do what I want).

Hi folks!
I'm having a similar issue where aborting the control signal passed in to fetchEventSource doesn't cause the promise to throw and thus the .catch isn't called, contrary to what I would expect.
I have console.logs in the onclose, onerror callbacks of fetchEventSource, and in the .catch and .finally promise methods, and it seems that only the .finally is called when I call .abort on my controller.
Am I right in my expectations here or am I missing something?
I'm happy to provide further details & code but first I just wanted to check if there was anything that I'm obviously missing first.
Thank you!

Hi folks!
I'm having a similar issue where aborting the control signal passed in to fetchEventSource doesn't cause the promise to throw and thus the .catch isn't called, contrary to what I would expect.
I have console.logs in the onclose, onerror callbacks of fetchEventSource, and in the .catch and .finally promise methods, and it seems that only the .finally is called when I call .abort on my controller.
Am I right in my expectations here or am I missing something? I'm happy to provide further details & code but first I just wanted to check if there was anything that I'm obviously missing first.
Thank you!

actually abortcontroller not working here I do this
at onClose &onError
add this throw new Error() that will do

its easy to do in modern browsers follow this.
 const controller = new AbortController()
 const { signal } = controller

 await fetchEventSource('your API', {
	onmessage(ev) {
	  console.log('data', ev.data)
	},
	onclose() {
         controller.abort()
	 // do something
       },
       onerror() {
	// do something
       },
       signal,
   })

and When you want to close the connection, just call controller.abort()

thats works for me. Thanks!

For those having the issue in React, this works:
const [ abortController, setAbortController ] = useState(new AbortController());

fetch(
   signal: abortController.signal
   // ...
)

function stopResponseSSE() {
    abortController.abort();
    setAbortController(new AbortController());
}

As June mentioned, "once an instance of AbortController is used, we need to create a new instance to reset the value."
In React, you most likely will need to set the state with a new Abort Controller.
Hope this helps!

Better to use a useRef to store the abortController instead of useState as you'll end up triggering a (likely undesired) re-render when you call setAbortController(new AbortController());

yes the useRef is better solution here and you can reinitialize it during close and error , and if you want to retrigger the functinoality.

const [ abortController, setAbortController ] = useState(new AbortController());
fetch(
signal: abortController.signal
// ...
)
function stopResponseSSE() {
abortController.abort();
setAbortController(new AbortController());
}
this one worked for me, thanks
=====================================
`  const [ abortController, setAbortController ] = useState(new AbortController());
const fetchData = async (message?: ChatMessage, question_id?: string | null) => {
try {
  const token = await getToken();
  const headers = {
    Authorization: `Bearer ${token}`,
    Accept: "text/event-stream",
    'Content-type': 'application/json'
  };

  let parsed = "";
  let url: string = '';
  let requestData = null;

  if (chatStep === chatSteps.QuizScreen) {
    url = API_URL + `/api/v0/chat/question/stream/${chatID}`;
    requestData = {
      new_messages: message ? [message] : chatStartMessageArray,
      question_id: QuestionData ? QuestionData.question_id : null
    }

  } else if (chatStep === chatSteps.ConceptScreen) {
    url = API_URL + `/api/v0/chat/videos/stream/${chatID}`;
    requestData = {
      new_messages: message ? [message] : chatStartMessageArray,
      timestamp: activeVideo !== null ? playBackData[activeVideo].playTime : null,
      video_id: activeVideo !== null ? playBackData[activeVideo].videoID : null
    }

  } else {
    url = API_URL + `/api/v0/chat/stream/${chatID}`;
    requestData = {
      new_messages: message ? [message] : chatStartMessageArray,
    };

  }

  await fetchEventSource(url, {
    method: "POST",
    headers: headers,
    body: JSON.stringify(requestData),

    onopen(res) {
      return new Promise<void>((resolve, reject) => {
        if (res.ok && res.status === 200) {
          setOnApiResponse(true);
          setShowLearnMore(false);
          resolve();
        } else if (
          res.status >= 400 &&
          res.status < 500 &&
          res.status !== 429
        ) {
          console.log("Client side error ", res);
          reject();
        }
      });
    },

    onmessage(ev) {
      if (ev.data) {
        setOnApiResponse(false)
        const newData = ev.data;
        parsed += newData;

        const temMsg = {
          "role": "assistant",
          "inserted": false,
          "text": parsed
        };

        const assistantMessage = [...messages, temMsg];
        setMessages(assistantMessage);
      }
    },

    onclose() {
      console.log('close called');
      setOnApiResponse(false)
      setShowLearnMore(true);
      fetchChatHistory();
      setIsStreaming(false);
      if (chatStep === chatSteps.ActiveChatScreen) {
        setFetchInitialHelpMsg(false);
      }

      if (chatStep === chatSteps.ConceptScreen) {
        setFetchInitialVideoMsg(false);
      }

      if (chatStep === chatSteps.QuizScreen) {
        setFetchInitialQuizMsg(false);
      }

    },

    onerror(err) {
      console.log(err);
      setOnApiResponse(false);
      setShowLearnMore(true);
      setIsStreaming(false);
      throw err;
    },

    signal: abortController.signal

  });

} catch (error) {
  console.error('Error:', error);
  throw error;
}

}
const handleHalt = () => {
setIsStreaming(false);
abortController.abort();
setAbortController(new AbortController());

}
`


How change speed animation

Hi! How I speed up the animation?
I use:
app:efab_openingAnimationDurationMs="100"  app:efab_closingAnimationDurationMs="100"
but this only works on the first opening, on the second and subsequent ones, the animation speed returns to the initial one. I tried to install both through the markup and programmatically.

Hey @Leeeeerich,
The animation durations and properties can be set on each of the individual Views. I have linked to some relevant properties below that should help you, but please view the JavaDoc or KDoc for each class in the library, as properties other than those listed below can indirectly affect animations as well (for instance, the translationX value of a Label will determine how far it travels horizontally during animations). The documentation should explain exactly what each property does and how it influences animations.
ExpandableFab:
Opening Animation Duration
Closing Animation Duration
Closing Anticipate Tension
FabOption:
Opening Animation Duration
Closing Animation Duration
Opening Overshoot Tension
Label:
Hidden to Visible Animation Duration
Visible to Hidden Animation Duration
Overshoot Tension

Hey @Leeeeerich,
Have the links above helped you?


[trimmer] pass --disable-opt unusedtypechecks

Fixes: https://github.com/dotnet/android/issues/9399
An alternative to: https://github.com/dotnet/android/pull/9411
The .NET trimmer will inline cast statements such as:
var d = Application.Context.Resources.GetDrawable (resId);
Assert.IsNotNull (d as NinePatchDrawable);

If NinePatchDrawable is not "instantiated" anywhere via new(), inlined to:
var d = Application.Context.Resources.GetDrawable (resId);
Assert.IsNotNull (null); // BOOM!

We can solve this by passing --disable-opt unusedtypechecks, with $(_AndroidEnableUnusedTypeChecks) as a private MSBuild property to opt out if needed.
Since Java can create these objects, this feels like the reasonable fix for .NET 9 GA.
I also fixed the $(RuntimeIdentifiers) in TestApks.targets to check if someone passed -r android-arm64, for example.

The trimmer issue looks OK:

As well as the apk size regression test:

@sbomer FYI
I must admit I'm not a fan of this solution. It basically says that we know there are trimming holes in the system and we're going to try to avoid them by disabling certain optimizations in the trimmer. The problem is that trimmer may make similar assumptions elsewhere and we didn't catch it yet - or it will start to do so in the next release for example.
I'd say as a stop-gap solution for .NET 9, this is OKish, but we should really fix this as soon as possible.
Especially in light of the full trim mode "support", which will likely make this problem just worse.

Linux tests keep failing for "bizarre" reasons:
Workload installation failed: Version 35.0.1-ci.pr.gh9435.57 of package microsoft.android.sdk.linux is not found in NuGet feeds /mnt/vss/_work/1/s/bin/BuildRelease/nuget-unsigned/;https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-df9aaf29-1/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json;https://pkgs.dev.azure.com/xamarin/public/_packaging/Xamarin.Android/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-91b783ed/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ef07c4f2/nuget/v3/index.json.
##[error]build-tools/create-packs/Directory.Build.targets(133,5): Error MSB3073: The command ""/mnt/vss/_work/1/s/bin/Release/dotnet/dotnet" workload install android --skip-manifest-update --skip-sign-check --verbosity diag --source "/mnt/vss/_work/1/s/bin/BuildRelease/nuget-unsigned/" --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-df9aaf29-1/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-df9aaf29-1/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/xamarin/public/_packaging/Xamarin.Android/nuget/v3/index.json"](https://pkgs.dev.azure.com/xamarin/public/_packaging/Xamarin.Android/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-91b783ed/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-91b783ed/nuget/v3/index.json%22) --source "[https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ef07c4f2/nuget/v3/index.json"](https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ef07c4f2/nuget/v3/index.json%22) --temp-dir "obj/Release/.xa-workload-temp-r4whol04.5k5"" exited with code 1.

Retrying the whole thing.

/azp run

@sbomer FYI
I must admit I'm not a fan of this solution. It basically says that we know there are trimming holes in the system and we're going to try to avoid them by disabling certain optimizations in the trimmer. The problem is that trimmer may make similar assumptions elsewhere and we didn't catch it yet - or it will start to do so in the next release for example. I'd say as a stop-gap solution for .NET 9, this is OKish, but we should really fix this as soon as possible. Especially in light of the full trim mode "support", which will likely make this problem just worse.

@vitek-karas yes, @sbomer chose this as a better idea than https://github.com/dotnet/android/pull/9411. We would like to find a better solution later, especially if there is NativeAOT support for Android. Perhaps .NET 10?


Delete the slack information

What problem does this PR solve?

Issue Number: ref #4287
What is changed and how it works?
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Code changes

Has exported function/method change
Has exported variable/fields change
Has interface methods change
Has persistent data change

Side effects

Possible performance regression
Increased code complexity
Breaking backward compatibility

Related changes

Need to cherry-pick to the release branch
Need to update the documentation
Need to update key monitor metrics in both TiCDC document and official document

Release note
`None`.

/merge

/run-dm-integration-test


https://github.com/open-mmlab/Amphion/blob/5cb75d8d605ef12c90c64ba2e04919f4d5d834a1/models/tts/naturalspeech2/ns2.py#L57
Now, when we look for latent, is the decoder and quantizer in the reverse order?

Hi, NS2 paper uses latent after RVQ (in fact, it is the continuous vector corresponding to discrete codes), you can check the details in NS2 paper.

Hi, NS2 paper uses latent after RVQ (in fact, it is the continuous vector corresponding to discrete codes), you can check the details in NS2 paper.

I understand. I always thought that wav becomes latent after encoder, but in fact, it becomes latent after encoder and RVQ, right?

Hi, NS2 paper uses latent after RVQ (in fact, it is the continuous vector corresponding to discrete codes), you can check the details in NS2 paper.

I understand. I always thought that wav becomes latent after encoder, but in fact, it becomes latent after encoder and RVQ, right?

yes, NS2 paper uses the latent after RVQ, For details, please refer to https://arxiv.org/abs/2304.09116.


docs: fix typo in static-site-config/index.mdx

What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests

Description
This pull request is to fix the spelling
Checklist:

[ ] My code follows the developer guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

thanks


Arabic translations

Coverage increased (+0.4%) to 78.621% when pulling 8cc71be23ead453af07a3c773cea14ad74d82a4b on ahmadmayahi:patch-1 into 67dc16d4b963983053167351d42db6b4464a0a79 on clappr:master.

Thanks, @ahmadmayahi!


set Editable Range

I want to editable range for the Specific area. that area  only programmer must be write the code. In newer version not able to find the set edit range. is there any another method is available or how can be achieve this one?

See #874, #953, #1056, and their many duplicates.

This used to be a feature supported by the Monaco Editor, but it is no longer supported and there are no plans to bring it back.
We were not using editable ranges and found the burden of maintaining that too high, especially as we reimplemented the text buffer -- code.visualstudio.com/blogs/2018/03/23/text-buffer-reimplementation

Let's continue tracking the feature request in #953


do you have any plan for 4.60

Do you have any plan for lastest version?

I support this! 4.6 has made some nice improvements and 4.5's api isn't compatible in various ways.

Yes, that would be nice. Unfortunately, Currently, I don't have capacity for this. PRs are welcome.

PRs, are welcome, yet there are 2 PRs, for over half a year, that did not even got a response... This repo is dead...

I guess the author hasn't continued to update it for the time being


Add parse_headers.py script

Writing a Python binding is tedious, but it doesn't have to be.
This Python script parses the header files in the dev kit and auto-generates a binding stub (including docstrings). It does not handle enum, and can get confused by nameless arguments like MPlug::setFloat. It has been run against a random sample of headers and appears stable. The script writes to a /tmp dir in the repo so you can regenerate the stub for an existing class without overwriting it.
This script should help lower the barrier of entry for people who want to contribute, but don't have the patience for setting up the boiler plate.
Usage
mayapy ./Scripts/parse_header [header_name(s)]

At first I was worried it would automatically produce the final version of each class/method, and that it wouldn't let you handle MStatus or do the necessary due-diligence to throw exceptions at the right times and avoid fatal crashes (i.e. like OpenMaya 1.0).
But then I saw the sample MDagPath and realised it'll produce boiling plate for the user to fill in! That's really great; it was tedious having to copy/paste these things from the docs.
Merging this, let's keep it rolling!


Mainnet: Yet to receive haqq rewards

Hello,
Have not received my rewards till now and it has already passed 40 hours already.
When it's stated that the rewards will be distributed 24 hours after requesting for it.
My wallet address is: 0xe052f7b066e0df1b200588decfed63033fb41534
Hope you can clarify the situation for me.
Or you can help me check.

Please, reply as soon as possible


Support manual scale button

This sets bit 12 in some units, but it is also used to distinguish between some other units.