text:
How do I turn off inlay hints?

I want to turn off the inlay hints, but there is no option in lsp-zero to do that.
I've tried this (to turn them off on lsp attach), but this doesn't work either.
vim.api.nvim_create_autocmd('LspAttach', {
    callback = function()
        vim.lsp.inlay_hint.enable(0, false)
    end
})

I'm very new to configuring my nvim setup.
This is the config I'm using atm.
lsp.lua
-- see :help lsp-zero-keybindings
-- to learn the available actions
-- K: Displays hover information about the symbol under the cursor in a floating window. See :help vim.lsp.buf.hover().
-- gd: Jumps to the definition of the symbol under the cursor. See :help vim.lsp.buf.definition().
-- gi: Lists all the implementations for the symbol under the cursor in the quickfix window. See :help vim.lsp.buf.implementation().
-- gD: Jumps to the definition of the type of the symbol under the cursor. See :help vim.lsp.buf.type_definition().
-- gr: Lists all the references to the symbol under the cursor in the quickfix window. See :help vim.lsp.buf.references().
-- gs: Displays signature information about the symbol under the cursor in a floating window. See :help vim.lsp.buf.signature_help(). If a mapping already exists for this key this function is not bound.
-- <F2>: Renames all references to the symbol under the cursor. See :help vim.lsp.buf.rename().
-- <F3>: Format code in current buffer. See :help vim.lsp.buf.format().
-- <F4>: Selects a code action available at the current cursor position. See :help vim.lsp.buf.code_action().
-- ;e: Show diagnostics in a floating window. See :help vim.diagnostic.open_float().
-- [d: Move to the previous diagnostic in the current buffer. See :help vim.diagnostic.goto_prev().
-- ]d: Move to the next diagnostic. See :help vim.diagnostic.goto_next().

local language_servers = {
    'tsserver',
    'pylsp',
    'gopls',
    'golangci_lint_ls',
    'lua_ls',
    'terraformls',
    'rust_analyzer',
    'jsonls',
}

local lsp_zero = require('lsp-zero')

lsp_zero.preset({
    float_border = 'rounded',
    call_servers = 'local',
    configure_diagnostics = true,
    setup_servers_on_start = true,
    set_lsp_keymaps = {
        preserve_mappings = true,
        omit = {},
    },
    manage_nvim_cmp = {
        set_sources = 'recommended',
        set_basic_mappings = true,
        set_extra_mappings = true,
        use_luasnip = true,
        set_format = true,
        documentation_window = true,
    },
})

lsp_zero.on_attach(function(_, bufnr)
    local opts = { buffer = bufnr, remap = true }

    -- overrides
    vim.keymap.set('n', 'gD', function() vim.lsp.buf.type_definition() end, opts)
    vim.keymap.set('n', 'K', function() vim.lsp.buf.signature_help() end, opts)
    vim.keymap.set({ 'n', 'v' }, '<leader>ca', function() vim.lsp.buf.code_action() end, opts)

    vim.keymap.set('n', '<space>f', function()
        vim.lsp.buf.format { async = true }
    end, opts)

    -- See `:help vim.diagnostic.*` for documentation on any of the below functions
    -- use ;tt for trouble toggle
    vim.keymap.set('n', '<space>T', vim.diagnostic.setloclist, opts)

    -- Toggle window for diagnostics.
    vim.keymap.set('n', '<leader>e', function()
        -- If we find a floating window, close it.
        local found_float = false
        for _, win in ipairs(vim.api.nvim_list_wins()) do
            if vim.api.nvim_win_get_config(win).relative ~= '' then
                vim.api.nvim_win_close(win, true)
                found_float = true
            end
        end

        if found_float then
            return
        end

        vim.diagnostic.open_float(nil, { focus = false, scope = 'cursor' })
    end, { desc = 'Toggle Diagnostics' })

    vim.diagnostic.config({
        virtual_text = true
    })

    lsp_zero.default_keymaps({
        buffer = bufnr,
        exclude = { 'gl', 'go' },
    })
end)

vim.api.nvim_create_autocmd('LspAttach', {
    callback = function()
        vim.lsp.inlay_hint.enable(0, false)
    end
})

require('mason').setup({})
require('mason-lspconfig').setup({
    ensure_installed = language_servers,
    handlers = {
        lsp_zero.default_setup,
    },
})

lsp_zero.set_sign_icons({
    error = 'E',
    warn = 'W',
    hint = 'H',
    info = 'I'
})

nvim-cmp.lua
local cmp = require('cmp')
local cmp_select = { behavior = cmp.SelectBehavior.Select }
local cmp_format = require('lsp-zero').cmp_format({ details = true })
local cmp_action = require('lsp-zero').cmp_action()

require('luasnip.loaders.from_vscode').lazy_load()

cmp.setup({
    sources = {
        { name = 'luasnip' },
        { name = 'copilot' },
        { name = 'nvim_lsp' },
        { name = 'buffer' },
        { name = 'nvim_lua' },
        { name = 'cmdline' },
        { name = 'path' },
        { name = 'nvim_lsp_signature_help' },
    },
    snippet = {
        expand = function(args)
            require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
        end,
    },
    sorting = {
        priority_weight = 2,
        comparators = {
            require('copilot_cmp.comparators').prioritize,

            -- Below is the default comparitor list and order for nvim-cmp
            cmp.config.compare.offset,
            cmp.config.compare.scopes,
            cmp.config.compare.exact,
            cmp.config.compare.score,
            cmp.config.compare.recently_used,
            cmp.config.compare.locality,
            cmp.config.compare.kind,
            cmp.config.compare.sort_text,
            cmp.config.compare.length,
            cmp.config.compare.order,
        },
    },
    window = {
        completion = cmp.config.window.bordered(),
        documentation = cmp.config.window.bordered(),
    },
    mapping = cmp.mapping.preset.insert({
        ['<C-p>'] = cmp.mapping.select_prev_item(cmp_select),
        ['<C-n>'] = cmp.mapping.select_next_item(cmp_select),
        ['<Tab>'] = cmp.mapping.confirm({
            behavior = cmp.ConfirmBehavior.Replace,
            select = true,
        }),
        ['<S-Tab>'] = cmp_action.select_prev_or_fallback(),
        ['<C-Space>'] = cmp.mapping.complete(),
        ['<C-y>'] = cmp.config.disable,
        ['<CR>'] = cmp.config.disable,
    }),
    formatting = cmp_format,
})

plugin installation:
    use {
        'VonHeikemen/lsp-zero.nvim',
        branch = 'v3.x',
        requires = {
            -- LSP Support
            { 'neovim/nvim-lspconfig' },
            { 'williamboman/mason.nvim' },
            { 'williamboman/mason-lspconfig.nvim' },

            -- Autocompletion
            { 'hrsh7th/nvim-cmp' },
            { 'hrsh7th/cmp-nvim-lua' },
            { 'hrsh7th/cmp-nvim-lsp' },
            { 'hrsh7th/cmp-buffer' },  -- buffer auto-completion
            { 'hrsh7th/cmp-path' },    -- path auto-completion
            { 'hrsh7th/cmp-cmdline' }, -- cmdline auto-completion

            -- Snippets
            { 'L3MON4D3/LuaSnip' },
            { 'rafamadriz/friendly-snippets' },
            { 'saadparwaiz1/cmp_luasnip' },
        }
    }

Inlay hints are an unstable feature of nightly builds. So, there is no way to disable or enable inlay hints using lsp-zero.
That said, there's nothing in your code that enables inlay hints. I don't know what is happening.

Okay, thanks!


text:
DEVX-3061 add incoming jwt decode snippet

DEVX-3061 Add Incoming JWT Snippet
This adds a snippet to decode an incoming JWT using the standard Ruby JWT library

Ultimately this needs to live on https://github.com/Nexmo/nexmo-developer/blob/main/_documentation/en/concepts/guides/webhooks.md, not as a discreet snippet.
Can we also show where the signature is coming from, and pulling in a secret to help decode it?

This code snippet will be referenced here: https://github.com/Nexmo/nexmo-developer/pull/3562
Is that sufficient, or is there something specific for this snippet that needs to be added?

Is that sufficient, or is there something specific for this snippet that needs to be added?

Ah, didn't see that other PR, so since we're pulling it in nevermind! That will be good enough to reference.

Is that sufficient, or is there something specific for this snippet that needs to be added?

Ah, didn't see that other PR, so since we're pulling it in nevermind! That will be good enough to reference.

No worries, lots of PRs everywhere. :) Are we good to go on this one then? It'll unblock the NDP one after.

source: gharchive/pull-request

authors: bencgreenberg dragonmantank

repo: Vonage/vonage-ruby-code-snippets

license: MIT

license_type: permissive

license_source: github-api


text:
Library doesnt work on Python 3.11.0

Summary
Libary fails on Python 3.11.0
Reproduction Steps

Setup Python 3.11.0 & Novus
import discord.ext.commands OR run python -m discord -v

Minimal Reproducible Code
import discord.ext.commands

Expected Results
Bot starts
Actual Results
Error:
  File "/home/bbs/bbsbot/test.py", line 1, in <module>
    import discord.ext.commands
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/site-packages/discord/ext/commands/__init__.py", line 20, in <module>
    from .flags import *
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/site-packages/discord/ext/commands/flags.py", line 72, in <module>
    @dataclass
     ^^^^^^^^^
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 1221, in dataclass
    return wrap(cls)
           ^^^^^^^^^
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 1211, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 959, in _process_class
    cls_fields.append(_get_field(cls, name, type, kw_only))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 816, in _get_field
    raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'discord.utils._MissingSentinel'> for field name is not allowed: use default_factory

### Intents

members, presences, guild_messages

### System Information

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/site-packages/discord/__main__.py", line 117, in <module>
    import voxelbotutils
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/site-packages/voxelbotutils/__init__.py", line 1, in <module>
    from discord.ext.vbu import *
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/site-packages/discord/ext/vbu/__init__.py", line 1, in <module>
    from . import runner
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/site-packages/discord/ext/vbu/runner.py", line 12, in <module>
    from discord.ext import commands
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/site-packages/discord/ext/commands/__init__.py", line 20, in <module>
    from .flags import *
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/site-packages/discord/ext/commands/flags.py", line 72, in <module>
    @dataclass
     ^^^^^^^^^
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 1221, in dataclass
    return wrap(cls)
           ^^^^^^^^^
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 1211, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 959, in _process_class
    cls_fields.append(_get_field(cls, name, type, kw_only))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/bbs/.pyenv/versions/3.11.0/lib/python3.11/dataclasses.py", line 816, in _get_field
    raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'discord.utils._MissingSentinel'> for field name is not allowed: use default_factory

Python: 3.11.0
Arch: aarch64
Novus: 0.2.0
OS: Raspberry Pi OS 64bit (based on Debian 11)

### Checklist

- [X] I have searched the open issues for duplicates.
- [X] I have shown the entire traceback, if possible.
- [X] I have removed my token from display, if visible.

### Additional Context

_No response_

its rapberrypios, i know that it should still work, but maybe you can try it on linux?

it has nothing to do with raspberrypios its from changes of python 3.11.0
https://docs.python.org/3.11/whatsnew/3.11.html#dataclasses

its rapberrypios, i know that it should still work, but maybe you can try it on linux?

Raspberry Pi OS is based on debian linux, therefore it is Linux But which os novus is being run on has no bearing on python 3.11's breaking changes as previously said.

i meant a different linux distro, i should have written "on a different OS/version"

makes sense, but that was something that came to mind, because i had enough issues with outdated stuff on raspi os

likely related to this issue on another library's repo: https://github.com/Pycord-Development/pycord/issues/1752
the fix can likely be taken from this pull request: https://github.com/Pycord-Development/pycord/pull/1680

source: gharchive/issue

repo: Voxel-Fox-Ltd/Novus


text:
week-picker + multi-calendars display issues

Describe the bug
With the week-picker option enabled, when enabling range + multi-calendars, weeks are not highlighted on hover anymore.
According to the documentation those options are compatible with each other, is it true?
https://vue3datepicker.com/props/modes/#multi-calendars
To Reproduce
Compare:
      <VueDatePicker inline week-picker range multi-calendars/>

With:
      <VueDatePicker inline week-picker/>

Expected behavior
We could expect the week we're hovering to be highlighted (class: dp__cell_auto_range)
We could also expect the selected week to be highlighted (the whole week, class: dp__range_between_week)
Screenshots

Desktop & mobile (please complete the following information):

Firefox 113.0.1 (64 bits)
Google Chrome Version 113.0.5672.63 (Build officiel) (64 bits)
Library version 4.2.2

Thank you very much for your outstanding work on this library, let me know if you need more information

There is actually a conflict here, I'll fix this as part of the #393 where range prop shouldn't be required anymore for multi-calendars

authors: Jasenkoo hsmett

repo: Vuepic/vue-datepicker


text:
Fix OpenCollective part of readme

Fix broken link to the contributors
Fix broken anchors to opencollective page
Fix sponsors list display

:+1:

authors: Apollinaire SachaG

repo: VulcanJS/Vulcan

license: mit

license_source: bigquery


text:
Dynamic Loading and Injection: What are the ways that Rust allows code to be introduced at runtime?

Relevant CWEs:
https://cwe.mitre.org/data/definitions/94	Improper Control of Generation of Code ('Code Injection')
https://cwe.mitre.org/data/definitions/96	Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')
https://cwe.mitre.org/data/definitions/767	Access to Critical Private Variable via Public Method
https://cwe.mitre.org/data/definitions/1123	Excessive Use of Self-Modifying Code

There are no runtime code execution or dynamic code generation features in rust. Most vulnerabilities relating to this would be solved in compile time visibility, type, and ownership checks.
For CWE 94 and 96, there is no runtime code execution in rust. (e.g no runtime 'eval' like function) However input needs to be properly verified by the developer before used. e.g if for some reason you wanted a function to run any inputted terminal command and just passed in the user's input as the argument. So these are technically possible I believe if that counts as code injection.
CWE 767 is more related to modules I believe which shouldn't be possible due to variables needing to be marked as pub to be visible in public functions.
For CWE 1123, self modifying code is usually a last resort but it isn't blocked by rust, but it is also at compile time with macros not runtime.

Makes sense to me. I'm going to do some more digging on this. Dynamic linking might be a version of this. I want to document the places we looked for this one - since "there is no" could be something we overlooked.

(And this might be one that external people might have crazy ideas too)

authors: andymeneely blaqat

repo: VulnerabilityHistoryProject/mega-foss


text:
Non-Interactive Installation with Meaningful Output?

vim +PluginInstall +qall will install the plugins and exit, but the process opens the normal vim UI and gives feedback in that UI. Is there a way to have each installation printed to stdout, so as to make an automated installation workflow sane? Currently i'm just muting Vim, which is less than optimal. Thoughts?

This would be awesome, but a bit hairy to implement, considering the aforementioned tight integration between interface and install logic :(
For myself, to speed up the first install, I ended up writing a simple script that reads the bundles and clones them in parallel, but I still open Vim to load the vimrc and get the bundle list. I had to do this because I was including extra files with Plugin lines conditionally.
So in any case, maybe Vundle is not really the tool for this kind of scenario, is what I'm saying. If your vimrc is a simple one, then you could potentially parse it to get the plugins and just clone them in place, so when Vim loads with Vundle, they will be loaded.

@jdevera do you mind having a look at some of my old PRs (#450 and #468 for example). I did start some work to remove the tight connection between interface and logic at that time but never went any further with it because you stopped merging things.

So sorry I let you down @lucc,  my focus on Vundle is really intermittent.

Seems to me that a simple vim +PluginInstall +qall &>/dev/null would work in many cases. YMMV

@mafrosis The problem has to do with TTY. I ran into a problem where Docker wasn't allocating a TTY during it's image compilation phase (e.g. docker build). However, I believe this is fixed in Docker. Although it would still be nice to decouple the UI from the logic.

Ah I see. I'm not familiar with docker yet (haven't joined the cool gang!)

Would love this/

I'm in terrible need of this.

If you are in terrible need you can implement it yourself or use a short shell script. Something like this might do the trick:
for dir in ~/.vim/bundle/*; do
  git -C "$dir" pull # maybe add ">/dev/null 2>&1" and/or "&" here
done

I managed to get it going this way:
echo | echo | vim +PluginInstall +qall &>/dev/null

The 2 echo's send newline's to any confirmation prompts that might come up, then i pipe the output to devnull.

@breerly what plugins require confirmation?

theoretically @lucc suggestion should work as well, though i have not tested

@razic I think it was YCM warning... don't remember

Might be overkill, but if you want to do it asynchronously to go faster:
#!/bin/bash
BUNDLE_PATH="$HOME/.vim/bundle"
declare -a pids
declare -a plugins
for dir in $BUNDLE_PATH/*/; do
  if [ -d "$dir" ]; then
    git -C "$dir" pull &>/dev/null &
    pids+=($!)
    plugins+=($dir)
  fi
done
ret=0
# Wait for processes to finish and output something useful
for k in ${!pids[@]}; do
  plugin_path=${plugins[k]}
  plugin="${plugin_path##$BUNDLE_PATH/}"
  plugin="${plugin%/}"
  wait ${pids[k]}
  if [ $? -eq 0 ]; then
    echo "Success: $plugin is up to date!"
  else
    echo "Error updating $plugin" >&2
    ret=1
  fi
done
echo "Your plugins have been updated"; exit $ret

I wrote this a while ago, might help:
https://github.com/jdevera/parallel-vundle-installer

@breerly excellent!!!!!

@unhashable's answer worked for me but with single echo!
echo | vim +PluginInstall +qall

Also, got rid of the dev null as I want to see the output.

authors: breerly ioagel jdevera kaustubhcs leeola lucc mafrosis nfischer razic


text:
Could you provide a pytorch code？

Hi，thanks your code， but I can not understand Theano code。 Would you like provide pytorch code？Thanks again！

Hi,
I'm interested in your pytorch version and would like to contribute to it if possible.
Thank you!

A basic pytorch implementation is released. Meanwhile, we will work on improving it.

authors: Johnson-yue WANG-Chaoyue cuongpxu

repo: WANG-Chaoyue/EvolutionaryGAN


text:
Integrate Cambodia's IDPoor data into PRISM

The IDPoor system in Cambodia reports the number of households registered as poor by administrative area. For the upcoming deployment of PRISM in Cambodia, we need to ingrate this data as an admin_level_data layer type. The IDPoor data does not seem to be updated frequently and we're not sure about the reliability / performance of the API.
Details about the IDPoor system can be found here: https://mop.idpoor.gov.kh/about/documents
Some light documentation on the API is here: https://mop.idpoor.gov.kh/api/external/swagger-ui.html
A query builder (which uses the API) is here: https://mop.idpoor.gov.kh/reporting/builder
A few challenges / caveats:

The IDPoor data collection occurs over multiple rounds over time. But from a data visualization / analysis perspective, we should retrieve the latest IDPoor data nationally, which is assembled over multiple rounds over time
The gazeteer codes used by the IDPoor system do not align with admin codes we've used. A boundary file that matches the IDPoor codes is available from the WFP Cambodia office
Multiple queries are also required to obtain all admin areas, as the queries for lower admin areas are unique to their parent. For example, to get admin2 data, a query is required for each admin1 area. In this example query, '3' is an admin1 code: https://mop.idpoor.gov.kh/api/analytics/public/units/3/children?region=ALL&isOnDemand=ALL&year=2019&round=ALL

See also: https://docs.google.com/document/d/11nuAKVPKUTXnmLieLpgSKhJyZK2Xzdqos8iBKwk7K90/edit#heading=h.lmenolaz2xfh

@wadhwamatic how often is the data updated?

@wadhwamatic how often is the data updated?

@ericboucher - I was trying to find the answer to this yesterday as well. I think at most, twice a year. Will confirm. Definitely ok to store locally and check for updates rather than fetching data every time

If that's the case, then I think we should either store it locally and have a prebuild script that checks for updates. Or simply load at build time using https://nextjs.org/docs/basic-features/data-fetching/get-static-props. Do we know how reliable their API is?

If that's the case, then I think we should either store it locally and have a prebuild script that checks for updates. Or simply load at build time using https://nextjs.org/docs/basic-features/data-fetching/get-static-props. Do we know how reliable their API is?

that sounds good to me. I don't know how reliable the API is, so all the more reason to take the approach you're suggesting

Closing this for now as we don't have updates on the IDPoor API

authors: ericboucher wadhwamatic

repo: WFP-VAM/prism-app


text:
Changed subject

Changed: main character to be an ogre
Added: Picture of an ogre
What do you think about this? Is this possible?

Changes implemented in commit ccf6fd8b80262949c0abcf122beb565e9b9e7d99


text:
修改了一下文字

我觉得论坛比自由讨论好一些

很不错，有想法

不过要做这个修改需要动用其他的存储库，还是算了


text:
Entità e relazioni

Lo schema relazionale del nostro database prevede sei entità:
• Student: ID, Nome, Cognome, Mail, IDTutor;
• Teacher: ID, Nome, Cognome, Mail;
• Course: ID, Nome, Mail, IDTeacher;
• CourseRequest: IDStudent, IDCourse;
• TutorRequest: IDStudent, IDTeacher.
• CourseAttendance: IDStudent, IDCourse;
Le entità CourseRequest, TutorRequest, e CourseAttendance sono utilizzate per
modellare le relazioni molti a molti che legano le altre tre entità.
Tra queste entità sussistono le seguenti relazioni:
• Student
– Uno Student può essere iscritto a zero o più Course;
– Uno Student può avere al massimo un Teacher come tutor;
– Uno Student può avere zero o più CourseRequest in corso;
– Uno Student può avere al massimo una TutorRequest in corso;
– Uno Student può essere iscritto a zero o più Course (CourseAttendance);
• Teacher
– Un Teacher può tenere zero o più Course;
– Un Teacher può fare da tutor ad al massimo tre Student;

è necessario anche un database e un servizio di spedizione mail. Si aggiunge quindi altre 2 entità.


text:
How many MessageBoxes are being exported!?! and which work?

I think I count at least 3 different versions of messegebox being exported, which work ?
Also, on this note, the DLL seems to have a lot of Test, and part filled in features, Please only have completed Items, and then have their names in the example images.

The ExtendedKryptonMessageBox is the one that I'm using, I know that one of them was a a test to see if I could make a Do Not Show Again option, but can't quite get the font and alignment to work. Is the Test referring back to the ExtraText I've put in, i.e MONTHNAME Update - Build: xxx? If so, I've consolidated all the settings into one DLL, but that won't be rolled out fully until July. All the code is there and working, but it's the tedious task of ripping out all the old code and replacing it with the new code.

There is also (From memory - not at dev machine) one called ExtendedKryptonMessageBoxOld and KryptonMessageBoxExtended
The other sentence is about lot's f other things in the dll that do not seem to make sense (Again not at dev machine to remember names!)

I'll take out ExtendedKryptonMessageBoxOld as it's not needed and the KryptonMessageBoxExtended is the one with the Do Not Show Again option in it.

I've taken out ExtendedKryptonMessageBoxOld in the latest commit. Probably will remove Extended File Dialogs.dll in the June release, as that needs work to be done.

Removed KryptonMessageBoxBase.cs

authors: Smurf-IV Wagnerp


text:
python api is not very pythonic

"the python api is not very pythonic. having predefined functions required at a module level is odd. I would instead have a class that has specific methods you have to implement, similar to the actual worker class, but also for the application_setup and ser/derialize functions (as static methods/class methods). And then I would have a python abstract class that mirrors the pony ffi side so that it works with existing development tools i.e. auto complete, linting, type checking."

This issue has been addressed by the new Python API.

repo: WallarooLabs/wallaroo


text:
SDK crashes during intialization on Android 7

Describe the bug
SDK crashes during initialization on Android 7 due to not java/util/Base64 not being found
SDK Version

Client: Android
Version: BOM 1.6.0

To Reproduce
Steps to reproduce the behavior:

Install app using Web3Wallet SDK on a device with Android 7 (API 24)
Initialize SDK

Expected behavior
SDK initializes successfully
Device (please complete the following information):

Device: Redmi Note 4
OS: Android 7

It's also reproducible on emulators.
Additional context
java.util.Base64 is only available on Android starting with API level 26. On older Android versions android.util.Base64 needs to be used.
Stacktrace

Fatal Exception: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Base64;
at com.walletconnect.foundation.util.jwt.JwtUtilsKt.encodeBase64(JwtUtils.kt:40)
at com.walletconnect.foundation.util.jwt.JwtUtilsKt.encodeJSON(JwtUtils.kt:35)
at com.walletconnect.foundation.util.jwt.JwtHeader.(JwtHeader.kt:17)
at com.walletconnect.foundation.util.jwt.JwtHeader.(JwtHeader.kt:20)
at com.walletconnect.foundation.crypto.data.repository.BaseClientIdJwtRepository.generateJWT(BaseClientIdJwtRepository.kt:35)
at com.walletconnect.android.internal.common.jwt.GenerateJwtStoreClientIdUseCase.invoke(GenerateJwtStoreClientIdUseCase.kt:14)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$1.invoke(CoreNetworkModule.kt:35)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$1.invoke(CoreNetworkModule.kt:34)
at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:52)
at org.koin.core.instance.FactoryInstanceFactory.get(FactoryInstanceFactory.kt:38)
at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:106)
at org.koin.core.scope.Scope.resolveValue(Scope.kt:246)
at org.koin.core.scope.Scope.resolveInstance(Scope.kt:231)
at org.koin.core.scope.Scope.get(Scope.kt:210)
at org.koin.core.scope.Scope.get$default(Scope.java:133)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$10.invoke(CoreNetworkModule.kt:98)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$10.invoke(CoreNetworkModule.kt:99)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$10.invoke(CoreNetworkModule.kt:99)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$10.invoke(CoreNetworkModule.kt:100)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$10.invoke(CoreNetworkModule.kt:101)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$10.invoke(CoreNetworkModule.kt:102)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$10.invoke(CoreNetworkModule.kt:96)
at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:52)
at org.koin.core.instance.SingleInstanceFactory.create(SingleInstanceFactory.kt:46)
at org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:53)
at org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:51)
at org.koin.mp.KoinPlatformTools.synchronized(KoinPlatformTools.kt:20)
at org.koin.core.instance.SingleInstanceFactory.get(SingleInstanceFactory.kt:51)
at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:106)
at org.koin.core.scope.Scope.resolveValue(Scope.kt:246)
at org.koin.core.scope.Scope.resolveInstance(Scope.kt:231)
at org.koin.core.scope.Scope.get(Scope.kt:210)
at org.koin.core.scope.Scope.get$default(Scope.java:133)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$11.invoke(CoreNetworkModule.kt:107)
at com.walletconnect.android.internal.common.di.CoreNetworkModuleKt$coreAndroidNetworkModule$1$11.invoke(CoreNetworkModule.kt:106)
at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:52)
at org.koin.core.instance.SingleInstanceFactory.create(SingleInstanceFactory.kt:46)
at org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:53)
at org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:51)
at org.koin.mp.KoinPlatformTools.synchronized(KoinPlatformTools.kt:20)
at org.koin.core.instance.SingleInstanceFactory.get(SingleInstanceFactory.kt:51)
at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:106)
at org.koin.core.scope.Scope.resolveValue(Scope.kt:246)
at org.koin.core.scope.Scope.resolveInstance(Scope.kt:231)
at org.koin.core.scope.Scope.get(Scope.kt:210)
at org.koin.core.scope.Scope.get$default(Scope.java:133)
at com.walletconnect.android.relay.RelayClient.initialize$sdk_release(RelayClient.kt:29)
at com.walletconnect.android.relay.RelayClient.initialize$sdk_release(RelayClient.kt:32)
at com.walletconnect.android.CoreClient.initialize(CoreClient.kt:58)

Resolved issue by switching to MultiBase's implementation


text:
Vanilla usage and stability improvements

[ ] Complete example to show usage of all controllers
[ ] Address github issues / discussions

No longer relevant, as we are using wagmi


text:
Stream "proof"

What exactly do you have to do to the present hook to make it not show on obs?

I think calling original present before drawing should be enough. Didn't test that tho.

Just tried that seemed to make it not show for me at all. but maybe im just doing it wrong.

use the second present that steam overlay uses

Ok thanks, ill look into it.

authors: Monsterxsync Wando1423 certmemer


text:
Test Everything

[x] Subscribe via message to non-whitelisted subreddit
[x] Subscribe publicly to non-whitelisted subreddit
[x] Whitelist subreddit
[x] Subscribe via message to whitelisted subreddit
[x] Subscribe publicly to whitelisted subreddit
[x] List subscriptions
[x] Post subscribed post
[x] Make sure comments are edited correctly
[x] Test parent deleting comment
[x] Test that subscriptions are deleted for updateme
[x] Delete some subscriptions
[x] Delete all subscriptions

I think that's everything


text:
[Feature] Common Sub Expression Elimination

subgraph elimination should be supported

implemented in https://github.com/WeLoveAI/OnnxSlim/releases/tag/v0.1.20

repo: WeLoveAI/OnnxSlim


text:
Error if I put biggest error that allow in create bill page.

I cant replicate it. can you tell me more detail of it?

authors: MarojT Tezigudo

repo: WePays/WePay


text:
Target Block / Button Compatibility

Description
It would be great to have a setting for projectiles to be able to interact with target blocks, buttons, or any other redstone type of switch I'm forgetting about just how regular physical projectiles would trigger these objects.
Configuration
Interact_With_Redstone:
  Enable: <true/false>
  Whitelist:
    List:
      - <target_block>
      - <button>
      - <some other thing i'm forgetting>

I think we'll add this as just a boolean in the main config.yml

Probably goes under Projectile section as boolean like Interact.Powerables (button, plate, wire, ...) and why not throw something like Interact.Openable (door, trapdoor, fence, ...)

Statistic.TARGET_HIT

Probably just buttons, bells, and target blocks. Nobody wants to open a door with a gun (And if they do, they can use block damage)

authors: CJCrafter CarboNight DeeCaaD

repo: WeaponMechanics/MechanicsMain


text:
updated readme

This Pull Request resolves Issue #
Description:
In this Pull Request we have done the following additions/edits for the code:
Note: Delete all the text including this!

Make sure you replace #<IssueNumber> with the particular Issue that you are referencing with!
Make sure you describe the Issue properly and ask as many people as possible to review your Pull Request so that it can be merged as soon as possible!

We are no longer actively maintaining this repo. Please check the latest Hacktoberfest repo and contribute to that. Thank you again for your contribution but will have to mark this as spam and decline this PR.

authors: prithvitewatia salman-bhai


text:
Symbol.keyFor is not spec compliant

19.4.2.5 Symbol.keyFor ( sym )
When Symbol.keyFor is called with argument sym it performs the following steps:

If Type(sym) is not Symbol, throw a TypeError exception.

For each element e of the GlobalSymbolRegistry List (see 19.4.2.1),
a. If SameValue(e.[[symbol]], sym) is true, return e.[[key]].

Assert: GlobalSymbolRegistry does not currently contain an entry for sym.

Return undefined.

I think this may be possible using a prototype check instead of a typeof check.

A prototype check is never cross-realm compatible, however.

what @ljharb said but I'm actually not sure I understand the problem.
Are you saying it should throw? Where native supported that would happen anyway, not sure it's a real concern but it might be fixable.
If you are talking about global cross realm thing ... that might be achievable dropping the random bit of this polyfill, assuming any other polyfill use the exact same version and same code used in the other realm.
worth exploring, will leave it open for now (hoping for extra clarifications or suggestions)

I'm commenting on the fact it should throw and currently does not in this polyfill.
I've added this to my implementation of keyFor:
if (Object.prototype.toString.call(symbol) !== "[object Symbol]") {
	throw new TypeError(symbol + ' is not a symbol');
}

It can definitely be improved.

Not sure it's a want fix then, it would throw in 90% of the cases where supported natively, there's much more this poly cannot cover if we take specs as reference. Why do you think that's needed? Are you validating ES6 via test262 using a polyfill? Any particular security concern? I'd like to see the benefit beside full specs compliancy that I know already it's unfortunately not possible

@JakeChampion that fails when Symbol.toStringTag is used. You'd need https://npmjs.com/is-symbol which is not compatible with Symbol shams like this one.
I'm a staunch advocate for spec compliance but if you want that, you wouldn't be attempting to polyfill Symbol, since typeof can't be shimmed - so I think in this case that check might not be valuable.

I'm looking at creating a set of Symbol polyfills for the polyfill-service

@JakeChampion This very project is the one that complies the very most with the spec on Symbols - I am very skeptical that any project could deviate from what this one does and improve the compliance (including cross-realm compatibility) - if you have such improvements, please PR them in! I would highly recommend using this project for your polyfill service rather than reinventing the wheel.

I have pulled the individual polyfills out into separate modules -- https://github.com/Financial-Times/polyfill-service/tree/symbol/polyfills/Symbol

That is unwise, as the attempt to polyfill Symbol is utterly useless unless done wholesale.

How so?
If a browser has Symbol but not specific well-known Symbols, this will create those well-known Symbols using their native Symbol constructor.
Have I misread some part of the specification?

@JakeChampion ah ok, if you're just talking about well-known symbols, that's different :-) afaik this project does not attempt to polyfill any of the well-known symbols, just Symbols themselves.

I think it does here

welp, there you go then :-p sorry for the miscommunication

I did modify the polyfill to freeze the Symbol to pass this test.

that seems like a good PR to add to this project :-D

I'm not sure I understand how that repository works ... it looks like you grabbed this repo file, dropped credits, changed tab size, removed some part, and made it your file.
Can you please explain to me what is this about and what are you trying to achieve and why or for whom?
Thank you.

Apologies for losing the credit information in the file, that has been added back with an extra comment leading to this repository and mentioning modifications have been made to the file.
The reasoning for modifying the file is because it is combining/applying multiple polyfills at once, which is something that the polyfill-service tries to avoid. The reason for that is to serve the minimum amount of polyfills required for a specific browser.
Some browsers already have a Symbol constructor, but don't have the other parts, such as Object.getOwnPropertySymbols and the collection of "well-known symbols". Instead of serving those browsers a pointless Symboll constructor polyfill, we will instead serve them only the polyfills they require.

this bug has been fixed and pushed with a test too.
for any other bug please open a ticket a part, thanks.
I will look into the frozen thing as soon as I have time

authors: JakeChampion WebReflection ljharb

repo: WebReflection/get-own-property-symbols


text:
Adding some emulated canvas support.

Hi,
After viewing the Deno 2.0 anoncement video, I tryed to use observablehq's samples in deno Jupyter Notebooks.
some samplkes use canvas, and so do crash.
by implementing some ugly code I can make canvas's dependent code to works, so it's posible to use an EmulatedCanvas2D to make canvas works in linkdom.
the question is: Can a canvas like can be integrated to the project ?
for reference there is a deno Notebooks of plot-mandelbrot-set:
import * as Plot from "npm:@observablehq/plot";
import { document } from "jsr:@ry/jupyter-helper";
import { createCanvas, type EmulatedCanvas2D } from "https://deno.land/x/canvas@v1.4.2/mod.ts";

function mandelbrot(x: number, y: number) {
  for (let n = 0, zr = 0, zi = 0; n < 80; ++n) {
    [zr, zi] = [zr * zr - zi * zi + x, 2 * zr * zi + y];
    if (zr * zr + zi * zi > 4) return n;
  }
}

const old = document.createElement;
document.createElement = (...args: any[]) => {
    if (args.length === 1 && args[0] === "canvas") {
        let realCanvas: EmulatedCanvas2D | undefined;
        const canvas = {
            height: 200,
            width: 200,
            getContext: (drv: string) => {
                realCanvas = createCanvas(canvas.width, canvas.height);
                return realCanvas.getContext(drv);
            },
            toDataURL: () => {
                return realCanvas?.toDataURL();
            }
        }
        return canvas;
    }
    return old.apply(document, args);
}

Plot.raster({fill: mandelbrot, x1: -2, x2: 1, y1: -1.164, y2: 1.164}).plot({aspectRatio: 1, document})

if you explicitly import canvas module you should be good to go, as that's used when available in this project:
https://github.com/WebReflection/linkedom/blob/a4bf499f61bc74d19e472cd6acbecc5e19db8b97/commonjs/canvas.cjs#L4

authors: UrielCh WebReflection

repo: WebReflection/linkedom

license: ISC


text:
enableDebug() to check connect()

It is not possible to enable Debug mode when connect().
$client->getConnection()->enableDebug(); is possible to set only after proper connection is established.

Hi @stanolacko ,
many thanks for your question.
Currently there is no easy way to enable the debug mode before the connect() call. However if you do want to have it enabled, just open https://github.com/Webklex/php-imap/blob/master/src/Connection/Protocols/Protocol.php#L32 and change it from false to true.
Bes regards,

authors: Webklex stanolacko

repo: Webklex/php-imap


text:
query limit() and paginate() documentation improvements

https://www.php-imap.com/api/query
The documentation does not indicate if page numbering starts at 0 or 1
Limit the result to a specific limit and / or page. This has a great positive effect on your execution time.
$messages = $query->all()->limit($limit = 10, $page = 2)->get();

The examples look like a mix of

function declaration function limit($limit, $page = 1)
example $query->all()->limit(10, 2), in php 8 this could be $query->all()->limit(limit: 10, page: 2)

It would be nice to show the function declaration with self explaining default values.
For paginate() it would be nice to have a more elaborate example. it is currently not clear what $page and $page_name are supposed to do.
Get a paginated collection of all available messages. Here is a pagination example.
$paginator = $query->all()->paginate($per_page = 5, $page = null, $page_name = 'imap_page');

Also the source code does not bring enough clarity
/**
     * Paginate the current query
     * @param int $per_page
     * @param null $page
     * @param string $page_name
     *
     * @return LengthAwarePaginator
     * @throws GetMessagesFailedException
     */
    public function paginate($per_page = 5, $page = null, $page_name = 'imap_page'){

It remains unclear what $page and $page_name are supposed to do without trying and dumping.
https://www.php-imap.com/examples/pagination brings some relief. Presumable implementating that and analysing $paginator->links() would bring some clarity.
Also, the source code of paginate() shows a get() while this is not the case for the other methods in Query. Shouldn't that be documented?

Hi @Polfo ,
thanks for your report. I can see why this might be unclear. Thanks for pointing this out. I've added some more context to the mentioned sections. It still needs some more attention, but I guess that's true for the entire documentation :)
https://github.com/Webklex/php-imap-documentation/commit/5b628cfc4ad81f73a2d092f992344ee681b5670a
The Documentation repository if publicly available under https://github.com/Webklex/php-imap-documentation.
Best regards,

Hi @Polfo ,
thanks for your report. I can see why this might be unclear. Thanks for pointing this out. I've added some more context to the mentioned sections. It still needs some more attention, but I guess that's true for the entire documentation :)
https://github.com/Webklex/php-imap-documentation/commit/5b628cfc4ad81f73a2d092f992344ee681b5670a
The Documentation repository if publicly available under https://github.com/Webklex/php-imap-documentation.
Best regards,

authors: Polfo Webklex


text:
Update README.md

change lazydocker url

Yes I do!

repo: Wechat-ggGitHub/Awesome-GitHub-Repo


text:
Insert week number column

Hi, is this possible to somehow add week number column inside this calendar?
Something like this:

Don't care about the layout, it's just the first image I've found.

Anyone?

@piotrros Did you find anything to display week number?

As far as I remember this wasn't possible and I had to implement it on my own.

Did you implement same thing in your calendar?

Yes, but whole code is heavily changed for my own needs and unfortunately I can't share it.

No problem, Can you share with me how can i achieve the same thing?
not source code but some idea and some clue.
I will implement my self.

repo: WenchaoD/FSCalendar


text:
Ok

Ok
Originally posted by @shoaibmbs1 in https://github.com/WhatsApp/proxy/pull/293#issuecomment-2423098652

Om

repo: WhatsApp/proxy


text:
how to see which option the user voted for in pollUpdateMessage

Does anyone have a practical example of how to do this without using example.ts? the messages.update controller is not capturing pollMessage changes

read this, It solved that problem for me
#164
https://github.com/WhiskeySockets/Baileys/issues/164#issuecomment-1611851211

read this, It solved that problem for me #164
#164 (comment)

thanks, it worked here for min, somehow "store" makes it possible to vote updates in messages.update

repo: WhiskeySockets/Baileys


text:
Simplify package.json

There's a shorter repository property for GitHub repositories, according to npm docs.
normalize-package-data says bugs are needless if you're specified the repository.

Thanks. Will check it later today


text:
How to extends ensure_installed dynamically upon BufReadPre

I am trying to separate configuration for each language to its own file. I am using lazy.nvim for this. I can easily extends treesitter and lspconfig config as follows from terraform.lua file
return {
  {
    "nvim-treesitter/nvim-treesitter",
    opts = function(_, opts)
      if type(opts.ensure_installed) == "table" then
        vim.list_extend(opts.ensure_installed, {
          "terraform",
          "hcl",
        })
      end
    end,
  },
  {
    "neovim/nvim-lspconfig",
    opts = {
      servers = {
        terraformls = {},
      },
    },
  },
}

I tried extending ensure_installed as same as treesitter shown above. But it did not work.
How to separate Language Server and its tool installation like above for this plugin? Also thanks a lot for making this plugin. it makes mason configuration really easy

I have the exact same use cases and would love this feature to be added. Right now I have to do an ugly workaround

I have also the same problem, the ensure_installed variable is not extensible in this plugin. Since this repo seems to be abandonned (nothing new for 7 months...), I might do a refactor somedays to make it simpler to use.

authors: benjamin-carpene clorl nurrony


text:
add zh-cn.yml and error repair

[x] add zh-cn.yml
[x] Editing description Cannot return to the previous menu
[x] Editing name Instructions not run and wrong assignment to description
[ ] Editing name The menu title is not updated after editing the name
[x] Repair item name
[ ] Return to the parent list menu Number of pages not returned to open

I don't know how to solve the remaining bugs. If you like, please help me.


text:
🛑 Gitea is down

In f6edcfd, Gitea (https://git.wicloz.rocks/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Gitea is back up in 4a9b2c1 after 16 minutes.

repo: Wicloz/upptime


text:
Bot Breaks with Bouncer

Both in the master branch as well as the modularity-rewrite branch,
the bot dies when it is connected to a bouncer (only tested on ZNC).
It leaves no log/error of the issue so working blind :P

I wonder if this still happens.

Seems not an issue anymore?

repo: WildPHP/Wild-IRC-Bot


text:
Correct the wiki link on the Modrinth page

The Minecraft wiki on Fandom is deprecated. The correct link should be https://minecraft.wiki/w/Legacy_Console_Edition.

I didn't really know that, so thanks

repo: Wilyicaro/Legacy-Minecraft


text:
Can't view weapon data

Looks like viewing weapon data got busted, armor lists and usable lists still load but for weapons it claims no viewer is available.

Fixed in 18619ed.

authors: IryokuChevalier TeoTwawki

repo: Windower/POLUtils


text:
Right PaneBorder doesn't show in HamburgerMenu compact view

#1563
Sorry I should have been more clear in my initial issue.
Steps to repro:
New hamburger project
Set PaneBorderBrush and PanBorderThickness properties as shown in previous issue #1563
CompactView:

NB: No right hand border.
ExpandedView:

NB: Right hand border appears.
What I would like is to have the right border show when in Compact View.
If that isn't supported then that is ok, just want to know if i'm missing something or there is some trick that I don't know of.
Thanks

So, what I am hearing you say is, it's right half the time?

@schnitty is right. The right-border collapses when the pane closes to compact form. Hmmm...
Come to think of it, doesn't look right that for the pane to provide the border. Or should it?
On checking my design it's the RootGrid or ContentGrid left-border that provides a hint of border between page and menu pane. Because of this I never run into a situation where I needed a border for compact pane.
The page control is actually more flexible.

If margin is required for a page excluding page-header, set RootGrid margin to 0 and define border for ContentGrid in RootGrid (that excludes page-header).
If margin is required all the way to the top (including page-header) you do it for RootGrid.
If the above looks onerous, it isn't.  Just define a border style as ThemeResource and use it consistently in your view pages  for RootGrid or ContentGrid.
Yes, I needed the right margin when the pane is open (which is working) because you want to see the boundary when using overlay modes.

@schnitty - will the above change your mind?

@dg2k I'll try that out those options and let you know how I go.

What you have suggested will work fine.  Can't believe I didn't think of that myself.  Sometimes you get a bit of tunnel vision.

authors: JerryNixon dg2k schnitty


text:
Consider using Koffi

Koffi seems to be a new choice for FFI.
It's quite new and seems well tested.
It seems the right FFI we're looking for. I really hope I could meet this project earlier
Futher action including investigation, learning how to use it, rewriting the code and testing need to be done.

It should be noticed that the package size is up to 80MB after using Koffi

repo: Winterreisender/webview-nodejs


text:
Configure script to automatically package GitHub release

Should contain:

BlueprintCore src folder in the project
BlueprintCore.dll
BlueprintCore.pdb
BlueprintCore.xml

This way I don't have to manually copy / bundle every time I push a release :P

repo: WittleWolfie/WW-Blueprint-Core


text:
🛑 Chatbot SILI is down

In 31463f6, Chatbot SILI (https://sili.wjghj.cn) was down:

HTTP code: 502
Response time: 3183 ms

Resolved: Chatbot SILI is back up in 2747b94.

repo: Wjghj-Project/status


text:
chore(deps): :arrow_up: update dependency firebase-admin to v11.10.0

This PR contains the following updates:

Package
Change
Age
Adoption
Passing
Confidence

firebase-admin (source)
11.9.0 -> 11.10.0

Release Notes

firebase/firebase-admin-node (firebase-admin)
v11.10.0: Firebase Admin Node.js SDK v11.10.0
Compare Source
New Features

feat(functions): Add features to task queue functions (#2216)
feat(auth): Add TotpInfo field to UserRecord (#2197)
feat(storage): Add getDownloadUrl method to the Storage API (#2036)

Bug Fixes

fix: Update TOTP docstrings (#2245)

Miscellaneous

[chore] Release 11.10.0 (#2246)
chore: upgrade databse-compat (#2244)
build(deps): bump semver from 5.7.1 to 5.7.2 (#2242)
build(deps-dev): bump @microsoft/api-extractor from 7.36.0 to 7.36.1 (#2239)
build(deps-dev): bump sinon from 15.0.4 to 15.2.0 (#2240)
Fixed docgen for getDownloadURL (#2241)
Fix Memory Leak in AsyncHttpCall affecting auth.listUsers (#2236)
build(deps): bump @google-cloud/storage from 6.9.5 to 6.11.0 (#2231)
build(deps): bump @google-cloud/firestore from 6.6.0 to 6.6.1 (#2232)
build(deps-dev): bump @firebase/app-compat from 0.2.7 to 0.2.13 (#2233)
Fixes to password policy validation (#2227)
Fix nesting in auth config tests (#2228)
build(deps-dev): bump eslint from 8.41.0 to 8.43.0 (#2218)
build(deps-dev): bump @typescript-eslint/eslint-plugin (#2223)
build(deps-dev): bump @microsoft/api-extractor from 7.34.4 to 7.36.0 (#2219)
build(deps): bump @types/node from 18.16.3 to 20.3.2 (#2224)
Expose MultiDB within Firestore (#2209)
build(deps-dev): bump @typescript-eslint/parser from 5.59.2 to 5.59.9 (#2205)
build(deps-dev): bump @types/lodash from 4.14.194 to 4.14.195 (#2206)
build(deps-dev): bump @firebase/auth-compat from 0.4.1 to 0.4.2 (#2208)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: wolsok@3.1.0
npm ERR! Found: @angular-devkit/build-angular@16.1.4
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR!   dev @angular-devkit/build-angular@"16.1.0" from the root project
npm ERR!   peer @angular-devkit/build-angular@">=13.0.0 <17.0.0" from jest-preset-angular@13.1.1
npm ERR!   node_modules/jest-preset-angular
npm ERR!     dev jest-preset-angular@"13.1.1" from the root project
npm ERR!   2 more (@nx/angular, @storybook/angular)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @angular-devkit/build-angular@"16.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/compiler@16.1.1
npm ERR! node_modules/@angular/compiler
npm ERR!   peer @angular/compiler@"16.1.5" from @angular/localize@16.1.5
npm ERR!   node_modules/@angular/localize
npm ERR!     peerOptional @angular/localize@"^16.1.0" from @angular-devkit/build-angular@16.1.0
npm ERR!     node_modules/@angular-devkit/build-angular
npm ERR!       dev @angular-devkit/build-angular@"16.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /tmp/renovate/cache/others/npm/_logs/2023-07-15T20_31_13_170Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2023-07-15T20_31_13_170Z-debug-0.log

repo: WolfSoko/wol-sok-mono


text:
Using renderCustomComponent to render user messages

Hi there,
I have a requirement to show an image user upload. I believe I can have an external component for upload and I can use the image to show in conversation. I found renderCustomComponent method, which can render almost anything in chat box.
Now whenever I use this component it renders component as a message from bot end, i.e. the component renders on the left side. Is there any way renderCustomComponent can render component as message from user?
Here is how renderCustomComponent is rendering the image in chat box.

This is how I need it to render.

Did you ever find a solution for this?

authors: Wintjen manthanbaranwal

repo: Wolox/react-chat-widget


text:
Message "package.json has not been modified." shows every time I run grunt patch

As stated. I do not know why this happens. It is not a serious problem, but it is fairly annoying and it seems to lag quite a bit before and after showing the message so I wonder if whatever it's doing behind the scenes that causes that output is unnecessary/unnecessarily slow.

The message is actually coming from install-changed which was added in https://core.trac.wordpress.org/changeset/47497. It runs on every grunt task and shouldn't be specific to grunt-patch-wordpress.

repo: WordPress/grunt-patch-wordpress


text:
add render context prop to sentry error event

Fixes

Fixes #1620  by @sarayourfriend
Description
added render context property to the sentry event that is sent when there is an error
screenshot
i`ve tested it on my own sentry account and it seems to work...

Testing Instructions
someone with access to sentry needs to test this.

go to util/sentry-config.ts
paste the project dsn in the dsn property.
comment out the disabled and clientConfig property.
go to pages/index.vue
insdie setup(), throw an error
open the project in the browser.
go to sentry, look for that error and check if there is render context -> platform: server, in the report.
got to pages/index.vue again. now, encapsulate your error with an if statment that checks if the proccess is client
 if (process.client) {    throw new Error('test index page')  }
repeat step 6 and 7, but now the platform should be client.

Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

I've created https://github.com/WordPress/openverse-frontend/issues/1963 to account for the flaky e2e test needing to be addressed.

repo: WordPress/openverse-frontend


text:
Bug fixes and additional logging

There was a bug that was causing some updated files to be removed from the TFM database. To diagnose I added a lot of debug messages, enabled by adding a "-l true" to the command line.
Finally found the issue. When getting the files in Azure DevOps, there is a field called objectId. This is meant to be a unique identifier for the file in AzDo. I was using this to determine if the file still exists in the database. Unfortunately, this is actually a hash of the file (or similar) and changes when the file is altered. This led to not finding the file anymore and having the file entry in the database deleted.  I changed this to use the file Path instead.

No concerns with newest changes.


text:
WIP Migrate to null safety

Motivation
This package needs to be upgraded to null safety in order for it to be used in other null-safe packages, and is a prerequisite for being consumed in Dart 3.
This PR contains the bulk of the changes that will make up the react-dart 7.0.0 major release. A separate PR will be made into the v7_wip branch to perform other planned deprecated API removals.
Changes

Migrate to null safety

Fix null key handling in JsBackedMap, required due to null-safe typing of getProperty/setProperty, tests
Add null-safe mockito setup

Fully disable implicit casts, fix remaining implicit casts not fixed in https://github.com/Workiva/react-dart/pull/366
Major API changes to help fix implicit casts, as well as generally improve typing

Update ReactComponentFactoryProxy.call return type from dynamic to ReactElement
Update typing of top-level   DOM factories from dynamic to ReactDomComponentFactoryProxy

Add new asserts that callback ref args aren’t non-nullable, add tests
Sync copy of RefTestCaseCollection w/ copy in over_react null safety branch
Remove ddc_emulated_function_name_bug - not needed, unnecessary to migrate

Security Insights
No security relevant content was detected by automated scans.
Action Items

Review PR for security impact; comment "security review required" if needed or unsure
Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

+10

@Workiva/release-management-p

repo: Workiva/react-dart


text:
Unicode range

Hi, I was wondering if there's a way to specify at what unicode number the glyphs start?
Thanks :)

I'd also like to see some more options around unicode text. In the underlying webfonts-generator there is an option to pass an object with unicode-SVG mappings. Should I get a pull request together?

The PR was merged - does this do the job for everyone? Also, if anyone could help me test that everything works fine on Windows that would be great. Thanks @colonelpopcorn for the contribution 🌯 🍔 🍳

I used Windows primarily for testing.

there was another PR that solved the Windows issue more concisely (and was already merged) so I went with that one - though I can only test for Mac - let me know whether it all works smoothly Colonel 🍿 ;)

Any news on this @colonelpopcorn ?

Yeah man, it works good! Thanks!
😀:shipit:😀

authors: benp colonelpopcorn tancredi

repo: Workshape/icon-font-generator


text:
SILK Life™ YouTube Glitch

There are some glitches with the five buttons present below the YouTube thumbnail on the SILK Life™ Media Channel. These buttons allow users to select the type of video they want to see from the Yoga, Arts, Cafe, Home, and Tech categories. However, the buttons are facing glitches and are not working correctly.
When users click on one of the buttons, the corresponding playlist is not displayed, and the videos are not playing correctly. This issue is affecting the user experience to view specific video categories.
To resolve this issue, the developers need to investigate the cause of the glitches and fix the code responsible for the buttons' functionality. This could involve debugging the code, checking for errors, and updating the code to ensure that the buttons work correctly.

Link: https://silkcorp.org/

I had a meeting with Felix about this issue and he will be working on it once he finishes his ongoing task.

Remy, I am done with my task we can now hop on a call anytime and work on it.

repo: WorldEnterpriseGroup/silkcorp


text:
karma balancing

The following changes have been made:

penalty for mistakes reduced to 5
karma cannot get below 0

Note to self: The db has to be updated before rolling to production.
UPDATE members SET karma = 0.0 WHERE karma < 0;

authors: SirLefti WrichikBasu


text:
Update built with Wyam

 Issue by ryanrousseau
Sunday Mar 03, 2019 at 14:44 GMT
Originally opened as https://github.com/Wyamio/Wyam.Web/pull/83

Adding blog.rousseau.dev

ryanrousseau included the following code: https://github.com/Wyamio/Wyam.Web/pull/83/commits

See 3d6e2ee0333be386f2b3191d60e8e4773e7501d6


text:
Update TwigTemplateTask for upcoming bake changes.

To solve cakephp/bake#395 I had to add an additional parameter to the public bake method. While this is OK from a backwards compatibility point of view, it does trigger a strict error in this plugin. I've also fixed the issue present in cakephp/bake#395 that was also found here.

Not sure why the filter tests are failing. 😕

Looking into that, need to fix the lower and higher versions anyway so doing that first :smile:

Fixing most of the failures was rather easy https://github.com/WyriHaximus/TwigView/pull/81/commits/ad3ed86c189052f9867b4b5f8500a552a7d07c66 so merging this and continuing my work getting all errors out before tagging later tonight :+1:

4.3.0 is out with this in it and a bump to PHP 5.6 :+1:

Thanks!

authors: WyriHaximus markstory

repo: WyriHaximus/TwigView


text:
Detection matrix input helper function

Added the discussed helper function to assist in forming the specific input requested by the GenerateDetectorProposalSaliency.generate() interface method.

LGTM, thanks all! Feel free to merge on green.

authors: Purg brianhhu

repo: XAITK/xaitk-saliency


text:
Make the basic crawler

Uses Beautifulsoup to fetch the title, meta title, meta description(if available) and links(using anchor tags) from a given webpage.
Prints all fetched results, along with the time when the request was made.
Uses venv to manage dependencies.

Sorry, but major inconsistencies with PEP8.
The given list is for your reference.
E302 | 4 | 1 | expected 2 blank lines, found 1
E111 | 5 | 3 | indentation is not a multiple of four
E111 | 7 | 7 | indentation is not a multiple of four
E111 | 9 | 11 | indentation is not a multiple of four
E111 | 10 | 11 | indentation is not a multiple of four
E111 | 12 | 3 | indentation is not a multiple of four
E111 | 17 | 7 | indentation is not a multiple of four
E111 | 18 | 7 | indentation is not a multiple of four
E111 | 19 | 7 | indentation is not a multiple of four
E111 | 20 | 7 | indentation is not a multiple of four
E111 | 22 | 7 | indentation is not a multiple of four
E302 | 24 | 1 | expected 2 blank lines, found 1
E111 | 25 | 3 | indentation is not a multiple of four
E111 | 26 | 3 | indentation is not a multiple of four
E111 | 27 | 3 | indentation is not a multiple of four
E111 | 29 | 3 | indentation is not a multiple of four
E111 | 35 | 7 | indentation is not a multiple of four
E111 | 36 | 7 | indentation is not a multiple of four
E111 | 37 | 7 | indentation is not a multiple of four
E111 | 38 | 7 | indentation is not a multiple of four
E111 | 45 | 7 | indentation is not a multiple of four
E111 | 47 | 3 | indentation is not a multiple of four
E111 | 49 | 3 | indentation is not a multiple of four
W292 | 52 | 48 | no newline at end of file

Yeah I realised soon enough that I had pylint on instead of pep8, I'll quickly format it again.

Just one question, how many bonus points do you get for not using libraries like bs4?

Alright, now I've made a version without using BeautifulSoup. with-bs4.py and without-bs4.py both exist in the folder, but you only need to look at the one without it.

On it.

Added.

@someshkar There is a slight issue here, your crawler function doesn't return the text (source code). It should return the text with other things as well. Please make the change!

Alright, now it returns the full source code too.

authors: sauhardjain sayamkanwar someshkar

repo: XINO-DPSR/open-source-marathon


text:
Set mediatype for file to application/*

Closes #194
One reason to have a list was to avoid binary types. However, this can be bypassed so protection is weak. Users can use body::mediatype to set explicit allowed types.
This replaces the file type test with a more modern variant.

Code looks good to me. Thanks.

authors: MartijnR lognaturel

repo: XLSForm/pyxform


text:
Add Pseudo-transaction mappings

We should add Transaction subclasses for all pseudo-transactions. Even though developers will never want to sign and submit their own pseudo-transactions, if they try to retrieve a pseudo-transaction from the ledger, xrpl4j will blow up.

For future information, there's a bug in rippled with certain pseudo-transactions that would require an ammendment to fix, but that don't really matter. However, they will unexpectedly break certain deserializers, so we need to be cognizant.
Note that there is a bug in rippled (that is unlikely to be fixed due to requiring an ammendment and the fact that the impact is very low). For example, it looks like the account is encoded as 0000000000000000000000000000000000000000 in e.g. SetFee but is omitted in the UNLModify encoding from rippled (this is a bug).
For a full example, SetFee is encoded as
12006524000000002603F62301201E0000000A201F00989680202
0001E848035000000000000000A6840000000000000007300811
40000000000000000000000000000000000000000

and UNLModify is encoded as  120066240000000026040B5200684000000000000000730070132 1EDB6FC8E803EE8EDC2793F1EC917B2EE41D35255618DEB91D3F9 B1FC89B75D4539810000101101
(ripple-binary-codec has an extra 40 0s because it's assuming it's supposed to do the same thing as SetFee).

Also for future information, I don't believe the thing that will blow up here is the XrplBinaryCodec class. We force users to ask for transactions from rippled with the binary flag == false. This way, rippled returns transactions in JSON form, not binary, and we can just let Jackson deserialize the JSON for us.
In our case, Jackson will be the thing to blow up because when it goes to create a Transaction and no Account field exists, Transaction will throw an error.
Likely, we'll need to do some magic in TransactionDeserializer to handle this edge case once we introduce pseudo transactions.


text:
Chromedriver executable path

Hi,
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Wanted to apply the fix with this [https://stackoverflow.com/questions/29858752/error-message-chromedriver-executable-needs-to-be-available-in-the-path]
P.S. Thx for adding the example IG. Will try to submit other PRs for examples

1- Go to https://sites.google.com/a/chromium.org/chromedriver/home
2- Click latest stable release
3- Download win32 or use another version for your operating system.
4- Copy chromedriver.exe or chromedriver executable file to suitable path. if you use Windows, default path is C:/bin/chromedriver.exe. Else default path is /usr/local/bin/chromedriver.
You can change chromedriver path with set_chromedriver_path in code.
from tweetcapture import TweetCapture
import asyncio
tweet = TweetCapture()

tweet.set_chromedriver_path("/usr/bin/chromedriver")

asyncio.run(tweet.screenshot(
    "https://mobile.twitter.com/jack/status/20", "test1.png", mode=3, night_mode=2))

Thx for the quick responses :)
Still doesn't work.

I've downloaded the right version of ChromeDriver added to both the main folder of the script and tweetcapture folder. I also added it to PATH in windows - still doesn't work.
From the StackOverflow post it seems the only workaround is the webdriver manager.
Also in Windows there is no C:/bin, I think that's in in Linux. And where are you using set_chromedriver_path

Make sure you have the latest version of Google Chrome installed. Chromedriver needs Google Chrome.
C:/bin/chromedriver.exe is default path for this program. Windows doesn't have it. Create folder C:/bin and copy chromedriver.exe to the folder. If you will use default path, don't use set_chromedriver_path in your code.
If you won't use default path, use set_chromedriver_path in your code and define custom path. But be careful when using slashes. C:\Users\user\chromedriver.exe is incorrect. Use / or \ as slashes.
e.g.
C:\Users\user\chromedriver.exe
C:/Users/user/chromedriver.exe

I cd into the examples to run the insta script tho it is posting the generic jack tweet.
Back to the previous comment, how to connect this to another tweet URL and  for every new tweet (based on.)...
Thx

authors: Xacnio pooriaarab

repo: Xacnio/tweetcapture


text:
Crash Report

Fatal Crash occurred on Thread named 'main'
Unix Time : 1733468702633
LocalTime : 6 Ara 2024 10:05:02

ACTIVE_CODENAMES = []
app_version = 2.8.0
device_model = SM-S711B
SEM_INT = 3402
SECURITY_PATCH = 2024-11-01
BASE_OS =
SEM_FIRST_SDK_INT = 33
RELEASE = 14
MEDIA_PERFORMANCE_CLASS = 0
CODENAME = REL
manufacturer = samsung
RELEASE_OR_CODENAME = 14
RELEASE_OR_PREVIEW_DISPLAY = 14
KNOWN_CODENAMES = {HoneycombMr1, HoneycombMr2, Lollipop, Kitkat, Tiramisu, Gingerbread, Cupcake, IceCreamSandwichMr1, JellyBean, IceCreamSandwich, LollipopMr1, M, N, O, P, Q, R, S, Sv2, Base, NMr1, OMr1, JellyBeanMr1, JellyBeanMr2, Donut, Froyo, GingerbreadMr1, EclairMr1, UpsideDownCake, Honeycomb, Eclair01, KitkatWatch, Base11, Eclair}
SDK_INT = 34
PREVIEW_SDK_FINGERPRINT = REL
PREVIEW_SDK_INT = 0
SDK = 34
SEM_PLATFORM_INT = 150500
brand = samsung
supported_abi = [arm64-v8a,armeabi-v7a,armeabi]
INCREMENTAL = S711BXXU6DXK4

Error Message : Unable to start activity ComponentInfo{com.rk.xededitor/com.rk.xededitor.MainActivity.MainActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
Error Cause : java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
Error StackTrace :

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rk.xededitor/com.rk.xededitor.MainActivity.MainActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4172)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4330)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2693)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:230)
	at android.os.Looper.loop(Looper.java:319)
	at android.app.ActivityThread.main(ActivityThread.java:9063)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
	at android.app.SharedPreferencesImpl.getBoolean(SharedPreferencesImpl.java:345)
	at com.rk.settings.PreferencesData.getBoolean(PreferencesData.kt:48)
	at com.rk.settings.PreferencesData.isOled(PreferencesData.kt:39)
	at com.rk.xededitor.ui.theme.ThemeManager.apply(ThemeManager.kt:38)
	at com.rk.xededitor.BaseActivity.onCreate(BaseActivity.kt:24)
	at com.rk.xededitor.MainActivity.MainActivity.onCreate(MainActivity.kt:66)
	at android.app.Activity.performCreate(Activity.java:9001)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1470)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4152)
	... 12 more

Clear app data #305 #295 #292

authors: AlphaDeniz GitAlasGo

repo: Xed-Editor/Xed-Editor


text:
Add post body to har requests

probably merge #12 first

add proper postData to har requests
Now post data is added to incoming requests. This paves the way for
veriyfing their content against openapispec in future commits.

repo: XenitAB/apidelta


text:
🛑 Bolo is down

In ace8d37, Bolo (https://Bolo.tikihed.repl.co) was down:

HTTP code: 500
Response time: 5810 ms

Resolved: Bolo is back up in 5e14f9e.

repo: Xiija/UpMonitor


text:
Pytorch yolov5 quantization error

Hi!iI have some questions to ask you.This error occurs when i run this commond"python resnet18_quant.py --quant_model float" to quantize yolov5 model(use the code of "ultralytics"):

Have you encountered the same situation?The weights I trained and the code I modified are available at the following link:
链接：https://pan.baidu.com/s/1plB4lEBGayeDwmCjGAIW5Q
提取码：mnox
--来自百度网盘超级会员V5的分享

@shoayi :
It seems that the network shape inference has problem? how about the float model inference? does it work or not?

@shoayi ,
In your file resnet18_quant.py, function quantization, this line of code is for resnet18 on imagenet:
input = torch.randn([batch_size, 3, 224, 224])
It should be changed to your own model input shape (it seems that [1, 3, 640, 640]).

Hi!iI have some questions to ask you.This error occurs when i run this commond"python resnet18_quant.py --quant_model float" to quantize yolov5 model(use the code of "ultralytics"):  Have you encountered the same situation?The weights I trained and the code I modified are available at the following link: 链接：https://pan.baidu.com/s/1plB4lEBGayeDwmCjGAIW5Q 提取码：mnox --来自百度网盘超级会员V5的分享

Hello can you please share with me the files in my email address: ikrame.bgr@gmail.com

authors: IkrameBeggar niuxjxlnx shoayi

repo: Xilinx/Vitis-AI


text:
apa102 module not implemented in firmware - potential fix

apa102 module is not available in firmware.
Uploading a generic Dotstar driver (https://github.com/RobertJBabb/micropython_generic_apa102/blob/master/generic_dotstar.py) allows the LED to be accessed easily like so:
import time
from generic_dotstar import SpiDotStar as SPIDotStar
from machine import SPI, Pin

clock = Pin(39)
data = Pin(40)
num_pixels = 1

print('Testing MicroPython 1.10 SPI DotStar Compatibility Class')

spi = SPI(2, sck=clock, mosi=data, baudrate=1000000)
pixelp = SPIDotStar(spi, num_pixels)
pixelp[0] = (0, 255, 0)
pixelp.show()
r, g, b = pixelp[0]
time.sleep(2)
pixelp.deinit()

Best not to use the HW SPI as it is also defined in tft_config.py for use with st7735. Better to use SoftSPI instead.

Maybe this SPI is already occupied by the screen. Modifying the SPI index number may solve it.

I did try using the other SPIs.
but two of them are used by the board (for flash/mem IIRC) the other one returned with an 'invalid configuration' no matter what I tried.
could you provide a working example using one of the other HW SPIs ?

Ah yes, FastLED, but I'm using micropython.
I can't get SPI1 to work though, it returns with invalid configuration...

authors: Xendi fundef1 mmMicky


text:
Elite Observatory doesn't announce discoveries immediately

I encouraged a member of my squadron to install Observatory Core. Things were going ok, but they found that the app only announced things if they clicked "Read All" or waited like 5 minutes, and it would catch up with the game.
I made sure they had the monitor started (it was set to go at startup), and I got them to reset the location of their journal files, but no change. They decided to uninstall the app at this point, but if you have any tips or tricks to diagnose or fix the problem, please let me know and I'll pass it on.

Duplicate of #80

authors: Xjph vanderaj

repo: Xjph/ObservatoryCore


text:
vegman: diagnostics: Add intrusion reset request

Added functionality to support intrusion sensor status reset request on VEGMAN-R GEN1 hardware.
End-user-impact: Added functionality to support
intrusion sensor status reset request
on VEGMAN-R GEN1 hardware.
Signed-off-by: Kirill Pakhomov k.pakhomov@yadro.com

forgot to say: i'm yet update the dbus interface in this PR

repo: YADRO-KNS/obmc-yadro-cli


text:
🛑 Haty Server is down

In 308f46c, Haty Server (https://hashi.sbs/_matrix/consent) was down:

HTTP code: 404
Response time: 488 ms

Resolved: Haty Server is back up in 322a71f after 5 minutes.

repo: YAT-Publish/status


text:
Capitalization/Order Fix

Made YW2 Map IDs not take priority over YW1 for no reason.
Fixed capitalization across the board. Please learn how to capitalize properly, it makes me sad.

literally the goat wtf

repo: YKW-Modding/yo-docs


text:
hardcode account id instead of searching for it

https://github.com/YNedderhoff/citytweets/blob/master/src/main/java/xyz/nedderhoff/citytweets/api/mastodon/api2/SearchEndpoint.java#L29

https://github.com/YNedderhoff/citytweets/pull/219

repo: YNedderhoff/citytweets


text:
Add test code for sending delete and backspace keys

Change list
Added a test for sending delete keys to a text edit
Added a test for sending backspace keys to a text edit
Updated the YouiEngine sample app
Types of changes

[x] New feature (non-breaking change which adds functionality)

Details
Updated the YouiEngine sample app and added tests.

make sure you run mvn clean site
https://github.com/appium/java-client/blob/master/docs/Note-for-developers.md#code-style

Does this include the AEP changes you mentioned earlier? About moving some of the views off to a different page?

mvn clean site
BUILD SUCCESS

+1

authors: HeloiseRD jplandry pfoster-youitv simongranger

repo: YOU-i-Labs/appium-java-client


text:
Admin pages and sub-pages

Hi there. This may not be possible, in which case consider this a minor feature request, or if it is, sorry for not reading through the documentation properly. ;)
I'm writing a plugin for YOURLS which displays a list of the most popular links per time period.  The problem is that the page is getting very long and I'd like to split it into multiple pages. The only way I have found of doing this is as follows:
yourls_register_plugin_page( 'myplugin', 'My Plugin', 'myplugin_display_page' );
yourls_register_plugin_page( 'myplugin2', My Plugin page 2', 'myplugin_display_page2' );
yourls_register_plugin_page( 'myplugin3', My Plugin page 3', 'myplugin_display_page3' );

...which creates the links:

Manage Plugins

My Plugin
My Plugin page 2
My Plugin page 3
Some other plugin

What I would ideally like is effectively "sub-menus" (or "sub-pages"), as follows:

Manage Plugins

My Plugin

My Plugin page 2
My Plugin page 3

Some other plugin

Purely cosmetic, I know, but I believe it would enhance the user experience somewhat.  I can certainly have a stab at writing a patch for this functionality, when I have some time.
Regards.

a solution can be to use tabs on your plugin page.

Not that I know of, and I agree that it would be nice to have an integrated way to accomplish this. I just rolled my own tabs... It worked.

repo: YOURLS/YOURLS


text:
URL's containing # character when using API not shortened correctly

Technical details

YOURLS version: 1.6
PHP version: 5.4.40

Reproducible Bug Summary

Use API to shorten URL which contains a '#' in the URL
The # and any characters following it in the URL are lost

This is a bug because...  If using the shortener directly, the '#' and any further characters after it are saved successfully. If using the API the '#' and following characters are lost.

How does this work (or not) using latest ?

In 1.7 shortening urls with '#' works correctly.

@lpiob Thanks for the feedback!
@JoebeeKenobi Please reopen this issue if it still occur with your updated version.

authors: JoebeeKenobi LeoColomb lpiob ozh


text:
TypeError: _leaflet2.default.markerClusterGroup is not a constructor

Getting this error TypeError: _leaflet2.default.markerClusterGroup is not a constructor while using this package on a create-react-app with typescript template
package.json packages under dependencies
    "react-leaflet-markercluster": "^2.0.0-rc3",
    "react-leaflet": "^2.6.1",
    "react": "^16.13.0",
    "prop-types": "^15.7.2",
    "leaflet": "^1.6.0",
    "leaflet.markercluster": "^1.4.1",

.js file
import 'react-leaflet-markercluster/dist/styles.min.css';
import MarkerClusterGroup from 'react-leaflet-markercluster';

<Map
  className="Map"
  center={[0, 0]}
  maxZoom={maxZoom}
  minZoom={minZoom}
  zoom={state.zoom}
  zoomControl={false}
  attributionControl={false}
  fullscreenControl
>
  <TileLayer
    attribution='© Mapbox © OpenStreetMap Improve this map'
    url={ApiConfig.MAPBOX_URL}
    tileSize={512}
    maxZoom={18}
    zoomOffset={-1}
    id="mapbox/streets-v11"
    accessToken={ApiConfig.MAPBOX_TOKEN}
  />

  <MarkerClusterGroup>
    <Marker position={[49.8397, 24.0297]} />
    <Marker position={[52.2297, 21.0122]} />
    <Marker position={[51.5074, -0.0901]} />
  </MarkerClusterGroup>
</Map>

any ideas?

npx create-react-app my-app --template typescript
cd my-app

yarn add react-leaflet-markercluster leaflet.markercluster leaflet react-leaflet
yarn add -D @types/react-leaflet @types/react-leaflet-markercluster

src/App.tsx:
import React from 'react';
import { Map, TileLayer, Marker } from 'react-leaflet';
import MarkerClusterGroup from "react-leaflet-markercluster";

import './App.css';

function App() {
  return (
    <Map className="markercluster-map" center={[51.0, 19.0]} zoom={4} maxZoom={18}>
      <TileLayer
        url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
        attribution='© OpenStreetMap contributors'
      />

      <MarkerClusterGroup>
        <Marker position={[49.8397, 24.0297]} />
        <Marker position={[52.2297, 21.0122]} />
        <Marker position={[51.5074, -0.0901]} />
      </MarkerClusterGroup>
    </Map>
  );
}

export default App;

src/App.css:
@import url('~react-leaflet-markercluster/dist/styles.min.css');

.markercluster-map {
  height: 90vh;
}

public/index.html:
<link rel="stylesheet" type="text/css" href="https://unpkg.com/leaflet/dist/leaflet.css" />

works as expected.
can't reproduce.

authors: YUzhva saadsaifse

repo: YUzhva/react-leaflet-markercluster


text:
BUG: some strict errors caused by faulty calls / wrong params

Backend crash on template settings and design pages.

fixed.


text:
add setting to turn off pop up notifications

add setting to turn off pop up notifications. Its so annoying when you got another one notification "You are not tracking time, there are not task that you track", yes im already know it, thanks, but stop notify my EVERY 5 seconds. Thanks

Hi @BEBEY1, I've made it, because you MUST TRACK EVERY single second of working hours in the app! Haha, I'm joking.
You can disable all notifications in the settings of application.
(There are only 2 types of notifications: every 15 mins to ping you to log time and every 40 mins, when you already track time, to make sure that current task wasn't changed)

repo: Yadro/time-tracker


text:
Need a little help with  extends Wpup_UpdateServer

Hi, i need some help, if you please.
Using wp-update-server 2.0.1 to update themes,
the update should be done only if there is a license key.
I send the key (theme_key) with wsh_filter_update_checks,
The request is sent ok from the theme
https://site1.name/update/
?action=get_metadata
&slug=theme-name
&installed_version=1.0.0
&php=8.2.8
&theme_key=123456789

200 OK
In the wp-update-server logs also is fine, the request has been received,
get_metadata theme-name 1.0.0 6.2.2 https://site2.name action=get_metadata&slug=theme-name&installed_version=1.0.0&php=8.2.8&theme_key=123456789
Wpup_UpdateServer Wpup_UpdateServer has been expanded:
class checkLicense extends Wpup_UpdateServer {

  protected function filterMetadata($meta, $request) {
  $meta = parent::filterMetadata($meta, $request);

  $licenseKey = $request->param('theme_key');

  if ( ! empty($licenseKey) ) {
    $meta['license_status'] = 'License valid';
  } else {
    $meta['license_status'] = 'License invalid';
    unset($meta['download_url']);
  }

    return $meta;
  }

  protected function checkAuthorization($request) {
  parent::checkAuthorization($request);

  if( $request->action==='download' ) {
    if( empty($request->param('theme_key'))) {
      $message = 'Sorry, your license is not valid.';
      }
    }

  }

}

I don't need to verify the key, I just want to check if the theme_key is empty or not. So the check just like
if ( ! empty($LicenseKey) )
But in the test
https://site1.name/update/?action=get_metadata&slug=theme-name
license_status returns as invalid
"license_status": "License invalid",
and the theme can't be updated.
The theme's zip with the new version has been uploaded as well.
I don't understand what I did wrong.  Missed something at checkLicense class?

I don't see anything wrong with the filterMetadata() method. In the checkAuthorization() method, you're looking for a data parameter instead of theme_key, which is probably unintended, but this should not affect the contents of the license_status field.

But in the test
https://site1.name/update/?action=get_metadata&slug=theme-name
license_status returns as invalid

That test URL doesn't seem to contain a theme_key parameter. If you omitted the parameter, "License invalid" would be the expected result, right?

Hi!
Sorry for inaccuracy with data,  it's because of the replacement of real properties before asking. I've changed this parametr.
If test with all bunch like
https://site1.name/update/?action=get_metadata&slug=theme-name&installed_version=1.0.0&php=8.2.8&theme_key=123456789
instead of
https://site1.name/update/?action=get_metadata&slug=theme-name
yes, it shows correct:
"download_url": "https://site1.name/update/?action=download&slug=theme-name",
"license_status": "License valid",
But attempt to update is still gives an error:
Downloading update from https://site1.name/update/?action=download&slug=theme-name…
An error occurred while updating Alba Longa: Download failed. Forbidden

This could be because the download URL doesn't include the license key. You could add it in the plugin, or you could extend filterMetadata() and add the key to $meta['download_url'].
Also, I noticed that the code in checkAuthorization() doesn't seem to do anything with $message after setting it. Did you omit $this->exitWithError($message, 403)?

Well, the key has been added in wsh_filter_update_checks
It's already a part of the request and it can be seen in the log.
But I added $meta['download_url'] into filterMetadata, and it works. Thank you very much!
Nnow i've got a new issue
Update failed: The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
But obviously it's not related to the wp-update-server , and I can handle it.
Thank you for help!

All right, I'll close this issue then.
And in case it helps, PCLZIP_ERR_BAD_FORMAT usually means that the ZIP file is invalid, so make sure you're not sending some extra data in the "download" response, like some PHP output.

authors: YahnisElsts goodwinpress

repo: YahnisElsts/wp-update-server


text:
SegmentioView not being deinitialized

Report

The more information you provide, the faster we can help you.

⚠ Select what you want - a feature request or report a bug. Please remove the section you aren't interested in.
Report a bug
I use a Segmentio View with the default settings on a UIViewController and when I pop the controller it doesn't get deinitialized. If I remove the Segmentio view the deinit function runs as expected.
I have add a deinit function that prints a message when the controller is deinitilized and I have also added a symbolic breakpoint to catch deinit event as described here: https://mobile.twitter.com/0xced/status/900692839557992449
Your Environment

Version of the component: 2.1
Swift version: 3.0
iOS version: 10.3
Device: iPhone 7
Xcode version: 8.3.3
If you use Cocoapods:  pod 'Segmentio', '~> 2.1'

Problem solved by adding [weak self] on valueDidChange.
segmentedControlView.valueDidChange = { [weak self] segmentio, segmentioIndex in
            // additional code here
}

repo: Yalantis/Segmentio


text:
No settings are applied to channels

It has already been reported before that auto-play/buffer settings don’t work with channels, but in fact, no settings are being applied to channels.
Whenever I am on a user’s YouTube home page (e.g., this one), the first video in the list will automatically start playing. Moreover, it will be using the HTML5 player even though I have set YTC to use “Aggressive Flash” for channels. Also, if I happen to want to watch that video and make it fullscreen, it will switch to HD even though I have set everything to use the lowest resolution. (Neither my system nor connection can handle HD, so switching back to SD is really difficult with the 100% CPU usage, but I don’t believe that Google understands or cares about that.)

You should really be using the HTML5 player, Flash Player support will be removed in time on YouTube (it may start around the time that NPAPI support is disabled in Chrome 45). HTML5 has a benefit of allowing you to watch videos at higher frame rates and gives better statistical data when you use the "Stats for nerds" option, so I suggest switching over.

SuperSajuuk commented a day ago
You should really be using the HTML5 player…  HTML5 has a benefit of…

It also has the “benefit” of automatically playing videos (and in HD no less), thus sucking up my limited bandwidth and completely hanging my system by pegging the CPU at 100%. ◔_◔
Like most people, I have no intention of using the HTML5 player until it works better than the Flash player (or at all).
It’s just yet another example (in a long list of examples) of Google fascistically ignoring user feedback and tyrannically telling us what to want and like. It takes people like Jeppe to wasting their time and effort to work around Google’s dictatorship to make life tolerable again.

Oh, and I forgot to mention that I was using version 2.1.5. I upgraded to 2.1.7 and it seems to be working now, so I’ll close this, and thanks!

2.1.7 is obsolete. Please keep that in mind.

Huh? ಠ_ఠ It says 2.1.7 is the current version.

It does, and if we wanted to be pedantic we could say that it is the latest stable release. Unfortunately, there have been many changes on YouTube's end (and to Firefox, I believe) that break that version.
@YePpHa has been doing all bugfixes and updates on the Developer Version and has not yet released a new "stable" version. He has stated that he plans the next stable release to be 2.1.8, but none of us are sure when that is going to be, particularly given the fact that addons.mozilla.org is very slow to approve submitted extensions and the Chrome Web Store has decided to not accept this extension.

authors: SuperSajuuk Synetech Zarggg

repo: YePpHa/YouTubeCenter


text:
CICD for Docker builds

Simple GHA configuration that builds and pushes a container image of go.resonite.com to ghcr.

Hmm, I didn't publish it to docker or anything because right now I'm cloning the whole folder down to the host machine.
Once this is published up to ghcr, I guess I can skip that step and just specify the image name in docker-compose?

Yeah, basically.
It will create a package like this: https://github.com/jae1911/go.resonite.com/pkgs/container/go.resonite.com

Guchi


text:
Create a handler channel per collector

We have seen a lot of contention between different collectors over the
single metrics channel provided to write to handlers. Also given that
handlers were only reading on one channel we made a parallel colleciton
system eventually single threaded which killed performance and also
caused a lot of strange behaviours relating to emissions to the
different storage backends, like missing aggregation buckets which for
cumulative counters leads to saw toothed charts
This commit makes sure that each collector has a dedicated channel to
it's handlers and each handler spins off a go routine for responding to
that channel. What that eventually means is that we can tolerate any
contention raising from an aggressive collector on one channel since it
can only affect itself and its own emissions.

Part of me was thinking - it will be better to have one complete handler instance per collector, rather than having per-collector channel (via channels map that handler stores).
At the end of day, channel best communication is expensive because it requires lock on two sides of channel and maximum throughput can be achieved by not using channels at all. So what if - the collector had one or two instance of handlers and metrics are directly emitted to handler without using a channel.
Handler still does batching and actual emit can still happen in a goroutine, but handler basically becomes a property of collector.

@gnufied Initially I had a similar idea as per the tracking ticket internally, however that changed for the following reasons:

Having a handler er collector means we will have N open http connections where N is the number of collectors, this means that the receiving end will suddenly have to deal with an N x increase in inbound connection
having stats per handler will become very convoluted since we have multiple of the same handler and determining which handler is doing what and keeping track of all of them in the internal metric server will become difficult to follow especially for calculations like min, max, percentiles etc,
concurrency in go has been made around the use of channels and it has been built around it really so I would rather use that behaviour for concurrency than coming up with an object level parallelism which is basically throwing all that away. Channels hold locks on both sides that is true, however with this new approach with multiple channels the number of times the lock is held is significantly decreased since now the demand for the channel has ben spread among many channels unlike the old behaviour where there was one central channels.

:shipit:

Please consider earlier shipit on this invalid. I need to have a look at again. this is for my own understanding more than anything else. :-)

lgtm! Well aside from @gnufied 's comment about the CononicalName causing issues for multi-instance collectors being handled.

:shipit:

Hold off on merging this, I will experimenting with something and then merge it, my experimentation work will not affect the current code

I was able to get that same bug in go 1.4.1 and go 1.5.1 and go 1.5.2 (check the relevant travis builds) so this seems to be non compiler related, it looks like a flaky test, since the same test would sometimes pass and other times fail

authors: gnufied tiras-j tsheasha

repo: Yelp/fullerite