text:
README don't specify how to install mongo db on linux

README don't specify how to install mongo db on linux
Type of issue:

[ ] Bug / Error
[ ] Idea / Feature
[x] Improvement detail

The ReadMe file specifies how to install mongo db on mac and windows but not for linux.

Can I work on this?

@Vishnu-M I already did, just waiting on them to approve. Thanks

authors: Vishnu-M dinaelhanan war-turtle

repo: scorelab/Stackle


text:
Refactor sampling to support more data types

Currently, the sample::sample_key function only supports pipelined Redis commands that can be represented by Option<isize>:
https://github.com/scott113341/redis-keyspace-stats/blob/8dd37e725a2e28a9d2dde9db1f1635e581e4f184/src/sample.rs#L40-L41
This makes us unable to implement #1, since the TYPE command returns a string (one of string, list, set, zset, hash or stream), not a number.
This probably involves refactoring the sampling code to represent pipelined results as redis::Value, before converting to a more appropriate type later.

Accomplished in #3 (I linked the PR after merge, so it didn't automatically close)

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
256 LEDs limitation, still relevant for new protocols such as WLED?

I do get the limit of 256 LEDs for certain scenarios / combinations.
So far, according to the other issues, the hard limit is assumed to be as part of the ESP8266 (firmware).
I'm using the WLED protocol on the ESP8266 (not the wled firmware direct, though, just in case its of relevance), which /should/ not have this limitation.
In regard of "audio-reactive-led-strip" I merged over the WLED support from Aircoookie's fork (https://github.com/Aircoookie/audio-reactive-led-strip.git).
Any chance to get >256 (RGBW) LEDs working here?

The limit is for the transfer protocol, 256*4(index,r,g,b) = 1024, it doesn't matter which library you use to drive the less.
I think that there are some forks or people on here who have added an additional bit or something in order to get more options for the index byte, I'll see if I can find some.

#150 has some more discussion on this

I now read the code and everything is pretty clear, sorry for the noise.
First mistake to begin with, I assumed WLED is the protocol, while there's severals (WARLS, GRGB, DNRGB, ..).
With WARLS 256 is the limit, with the others not having an N in the name all LEDs are updated altogether (not supported by this project) whereas DNRGB uses 2 bytes for indexing the LED which best case scenario is just a one-liner.
So I'm going trying to get DNRGB working now - thanks!

How are you going to get the second byte over the network?

diff --git a/python/led.py b/python/led.py
index c162c8b..e172011 100644
--- a/python/led.py
+++ b/python/led.py
@@ -69,20 +69,15 @@ def _update_esp8266():
     n_packets = len(idx) // MAX_PIXELS_PER_PACKET + 1
     idx = np.array_split(idx, n_packets)
     for packet_indices in idx:
-        m = '' if _is_python_2 else []
-        if _is_python_2:
-            m+= chr(1) + chr(2)
-        else:
-            m.append(1)
-            m.append(2)
+        m = []
+        m.append(4)
+        m.append(2)
         for i in packet_indices:
-            if _is_python_2:
-                m += chr(i) + chr(p[0][i]) + chr(p[1][i]) + chr(p[2][i])
-            else:
-                m.append(i)  # Index of pixel to change
-                m.append(p[0][i])  # Pixel red value
-                m.append(p[1][i])  # Pixel green value
-                m.append(p[2][i])  # Pixel blue value
+            m.append(i >> 8)  # Index of pixel to change
+            m.append(i & 0xFF)  # Index of pixel to change
+            m.append(p[0][i])  # Pixel red value
+            m.append(p[1][i])  # Pixel green value
+            m.append(p[2][i])  # Pixel blue value
         m = m if _is_python_2 else bytes(m)
         _sock.sendto(m, (config.UDP_IP, config.UDP_PORT))
     _prev_pixels = np.copy(p)

repo: scottlawsonbc/audio-reactive-led-strip

license: mit

license_source: bigquery


text:
Quasar Mockup

Art Assets
ICON & LOGO
The logo is based upon the Monserrat font and the Bold weight. A modified version of the font has been included in the /art/fonts folder, with which the logo can be created in normal document editors and other software that enables the user to choose and use fonts.

The black logo is exactly what is displayed when the user types "EFTG" in LibreOffice on Mac after installing the Logo font.

ICON:

LOGO:

All design work was undertaken with Affinity Designer and font modifications were made with Glyphs Mini. Open documents are available in /art/artboards.
FONT
The font recommended for multilingual application with all web-properties is noto sans, a SIL-OFL licensed font. The reason is that it is one of the only fonts available today that has absolute coverage for all glyphs in target languages. Three font weights have been chosen, and they have been made available in /art/fonts
MOCKUP
Although this is a working mockup, be warned - there is no backend (would prefer to use Prisma and GraphQL), no fuzzy search (although fuse.js is ready to go), no separate components (because that is actually work), no French translation (even though 99% of the interface is composed from i18n strings), no PDF renderer (although the collapsible sidebar is mocked).
This means that most of the logic is pəʞɔɐɥ together to give you an idea of the visualization of the mockup derived from the Balsamiq wireframe.
Notes:

The full-text search isn't wired up
There is no login (just ux)
There is no concotenation of records
PDF files will not be created on the fly
It is merely a super-charged mockup

Please feel free to visit the current state of the live version of the UI here: https://spa-mat-tixnxfbhjb.now.sh/

As far as I am concerned, this is the finished state and it could be merged into master - but I will leave that decision to the reviewers.

BTW, I thought it would be nice to show you how easy it is to make MacOS (electron) apps and Cordova (Android) from the same codebase.
https://github.com/nothingismagick/eftg-steem/releases/tag/1.0.0
https://github.com/nothingismagick/eftg-steem/releases/download/1.0.0/EFTG-1.0.0.dmg
https://github.com/nothingismagick/eftg-steem/releases/download/1.0.0/EFTG_signed.apk
There are a few details in both cordova and electron such as rendering of the PDF, but that is a matter for implementation and "relatively" easy to fix.

source: gharchive/pull-request


text:
Documentation: List of technologies used in project

Based off an idea from @nikoheikkila and myself from #166
As cool things are added to this project, we should document what they are for future reference.
Here's what I'm thinking.

Let's start a new header on README for Technologies.
Under that, we can list each technology used with a link to their documentation, site, repo, etc
Optional, a short description explaining what the technology is and how it was used.
Optional, include a reference to this in the contributing doc, pull request template, etc
Optional, include a code sample for so that copy and pasting and adding new links is easy peasy

This is an easy issue I'd like to reserve for an eager first timer
Comment below if you have questions and before starting work on this issue

Hi! So, as far as I can tell, you're using the following technologies:

JavaScript

JQuery
Moment.js

Bootstrap

Where are you hosting the website (and could it be hosted by GitHub Pages)?

I'm hosting the site on the server I use for my blog/portfolio site.
I guess it could be hosted on GitHub pages. What's the pro / cons for traditional hosting vs Github Pages

Pages is convenient (code on GitHub), quick (just edit, push, and changes are live) and free! Great if you don't have your own server.

I've created a pull request with a proposed solution!

authors: scrabill triangulum

repo: scrabill/how-many-days-until-halloween


text:
Binary file (PDF) download

I am facing an issue when using chromium, when trying to download a PDF file: the response.body is the viewer plugin HTML, not the bytes.
There's already a concerned fix here: https://github.com/scrapy-plugins/scrapy-playwright/commit/0140b90381a0da92194661a0d13b7436661e80a0
It worked for a month, but not anymore, still getting the issue :/
My code hasn't changed since your fix that worked.
The related issue: https://github.com/scrapy-plugins/scrapy-playwright/issues/184

Please provide a minimal, reproducible example.

import scrapy

class AwesomeSpider(scrapy.Spider):
    name = "test_dl"
    handle_httpstatus_list = [403]

    def start_requests(self):
        # GET request
        yield scrapy.Request(
            "https://defret.in/assets/certificates/attestation_secnumacademie.pdf",
            meta={
                "playwright": True,
                "playwright_page_goto_kwargs": {
                    "wait_until": "networkidle",
                },
            },
            callback=self.pasrse,
        )

    async def pasrse(self, response):
        print(response.body)

output:
<!DOCTYPE html><embed name="4C80DFDA2738145655DE7937BDA51A0F" style="position:absolute; left: 0; top: 0;" width="100%" height="100%" src="about:blank" type="application/pdf" internalid="4C80DFDA2738145655DE7937BDA51A0F">

instead of bytes
@elacuesta here the minimal, reproducible example.

Sorry, I cannot reproduce.
import scrapy

class AwesomeSpider(scrapy.Spider):
    name = "test_dl"
    custom_settings = {
        "TWISTED_REACTOR": "twisted.internet.asyncioreactor.AsyncioSelectorReactor",
        "DOWNLOAD_HANDLERS": {
            "https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
        },
        # "PLAYWRIGHT_BROWSER_TYPE": "firefox",  # same result with chromium and firefox
    }

    def start_requests(self):
        yield scrapy.Request(
            "https://defret.in/assets/certificates/attestation_secnumacademie.pdf",
            meta={
                "playwright": True,
                "playwright_page_goto_kwargs": {
                    "wait_until": "networkidle",
                },
            },
        )

    async def parse(self, response):
        print("Response body size:", len(response.body))
        print("First bytes:")
        print(response.body[:200])

2023-11-16 13:46:09 [scrapy.core.engine] INFO: Spider opened
2023-11-16 13:46:09 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2023-11-16 13:46:09 [scrapy.extensions.telnet] INFO: Telnet console listening on 127.0.0.1:6023
2023-11-16 13:46:09 [scrapy-playwright] INFO: Starting download handler
2023-11-16 13:46:14 [scrapy-playwright] INFO: Launching browser chromium
2023-11-16 13:46:14 [scrapy-playwright] INFO: Browser chromium launched
2023-11-16 13:46:14 [scrapy-playwright] DEBUG: Browser context started: 'default' (persistent=False, remote=False)
2023-11-16 13:46:14 [scrapy-playwright] DEBUG: [Context=default] New page created, page count is 1 (1 for all contexts)
2023-11-16 13:46:14 [scrapy-playwright] DEBUG: [Context=default] Request: <GET https://defret.in/assets/certificates/attestation_secnumacademie.pdf> (resource type: document)
2023-11-16 13:46:14 [scrapy-playwright] DEBUG: [Context=default] Response: <200 https://defret.in/assets/certificates/attestation_secnumacademie.pdf>
2023-11-16 13:46:15 [scrapy-playwright] WARNING: Navigating to <GET https://defret.in/assets/certificates/attestation_secnumacademie.pdf> returned None, the response will have empty headers and status 200
2023-11-16 13:46:15 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://defret.in/assets/certificates/attestation_secnumacademie.pdf> (referer: None) ['playwright']
Response body size: 1868169
First bytes:
b"%PDF-1.3\n%\xe2\xe3\xcf\xd3\n9 0 obj\n<< /Type /Page /Parent 1 0 R /LastModified (D:20200619180943+02'00') /Resources 2 0 R /MediaBox [0.000000 0.000000 841.890000 595.276000] /CropBox [0.000000 0.000000 841.890000 "
2023-11-16 13:46:15 [scrapy.core.engine] INFO: Closing spider (finished)

$ scrapy version -v
Scrapy       : 2.11.0
lxml         : 4.9.3.0
libxml2      : 2.10.3
cssselect    : 1.2.0
parsel       : 1.8.1
w3lib        : 2.1.2
Twisted      : 22.10.0
Python       : 3.10.0 (default, Oct  8 2021, 09:55:22) [GCC 7.5.0]
pyOpenSSL    : 23.2.0 (OpenSSL 3.1.2 1 Aug 2023)
cryptography : 41.0.3
Platform     : Linux-5.15.0-79-generic-x86_64-with-glibc2.35

scrapy-playwright 0.0.33 (3122f9cc8a32694fc2e7cbedc8511ca12e65d6a0)

Okay thanks for your fast answer, pretty strange tho, tried with many different versions, always getting the issue.
I guess i didn't debug enough yet and so seems like it doesn't comes from scrapy-playwright.
I'll keep you up to date.

Could you tell us your playwright version please?

$ playwright --version
Version 1.39.0

@elacuesta We were able to narrow down the problem to two settings. First, using the new headless mode of Chrome, like this:
PLAYWRIGHT_LAUNCH_OPTIONS = {
      'args': [
          '--headless=new',
      ],
      'ignore_default_args': [
          '--headless',
      ],
}

Removing this doesn't think the problem alone. We had to rollback to the default value of the Scrapy setting REQUEST_FINGERPRINTER_IMPLEMENTATION which is 2.6 : https://docs.scrapy.org/en/latest/topics/request-response.html#request-fingerprinter-implementation
Setting it to 2.7, which seems recommended for new projects, make the problem appear again, whether the new headless chrome mode is enabled or not.

The REQUEST_FINGERPRINTER_IMPLEMENTATION setting is not relevant to this issue, I tried several settings combinations and it did not change the results. The relevant part is the new Chromium headless mode, enabled as you mentioned:
PLAYWRIGHT_LAUNCH_OPTIONS = {
      'args': [
          '--headless=new',
      ],
      'ignore_default_args': [
          '--headless',
      ],
}

This looks like an upstream bug, the download event is not being fired with the new headless mode. I've opened an upstream Playwright issue (https://github.com/microsoft/playwright-python/issues/2169), although I suspect this is actually a Chromium issue.

I just saw the update on your Playwright issue: do you think there is a chance you could integrate in your plug-in one of the workarounds posted to handle this in the issue (and in the issues listed also)?

Thanks for your help. For now, we try to detect the PDF viewer code when using Chromium and we redirect the download to a non-Playwright spider.
We basically compare the content-type returned by the response headers with the real content-type by analyzing the response.body. If the headers say application/pdf but the body says text/html, we redirect.

I'm a bit hesitant to include the mentioned workaround in the main package for now, but I realized it's possible to implement it with the existing API though the playwright_page_init_callback meta key. Hope that helps.
import re
import scrapy

async def init_page(page, request):
    async def handle_pdf(route):
        response = await page.context.request.get(route.request)
        await route.fulfill(
            response=response,
            headers={**response.headers, "Content-Disposition": "attachment"},
        )

    await page.route(re.compile(r".*\.pdf"), lambda route: handle_pdf(route))

class PdfSpider(scrapy.Spider):
    name = "pdf"
    custom_settings = {
        "TWISTED_REACTOR": "twisted.internet.asyncioreactor.AsyncioSelectorReactor",
        "DOWNLOAD_HANDLERS": {
            "https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
        },
        "PLAYWRIGHT_LAUNCH_OPTIONS": {
            "args": ["--headless=new"],
            "ignore_default_args": ["--headless"],
        },
    }

    def start_requests(self):
        yield scrapy.Request(
            "https://defret.in/assets/certificates/attestation_secnumacademie.pdf",
            meta={
                "playwright": True,
                "playwright_page_init_callback": init_page,
            },
        )

    async def parse(self, response):
        print("Response body size:", len(response.body))
        print("First bytes:")
        print(response.body[:200])

Thanks for the code snippet! Unfortunately, it will not work for URLs that don't end with ".pdf" such as "?download=true" etc. We will try to figure something out and keep you updated.

Yes, that's exactly why I don't want to add the workaround to the main package :pensive:

authors: elacuesta kinoute tommylge

repo: scrapy-plugins/scrapy-playwright


text:
[SERF-1675] http server timeouts configuration

Description
inclusion of idle/write/read timeouts to /pkg/server.Config
applications using this sdk now are allowed to use mentioned timeouts through config file.
Checklist

[x] Prefixed the PR title with the JIRA ticket code
[x] Performed simple, atomic commits with good commit messages
[x] Verified that the commit history is linear and commits are squashed as necessary
[x] Thoroughly tested the changes in development and/or staging

Related links

SERF-1675

@laynax Also, we should be considering updating the README documentation by adding new configuration parameters there.

authors: Neurostep laynax

repo: scribd/go-sdk


text:
[feat] add MulAddAssign trait

patch to fit ff crate with MulAddAssign trait

cc @lispc @kunxian-xia

why this pr is based on main while https://github.com/scroll-tech/halo2curves/pull/7 is based on base-0.3.0? @lightsing

is this feat/mul-add-assign used anywhere?  since seems we never use the main branch ?

no longer useful

authors: lightsing lispc


text:
WIP: refactor: rewrite prover in rust

Purpose or design rationale of this PR
Refactor prover in rust, fixing the memory issue and supporting multi-version circuits.
PR title
refactor: rewrite prover in rust.

[ ] build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
[ ] ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
[ ] docs: Documentation-only changes
[ ] feat: A new feature
[ ] fix: A bug fix
[ ] perf: A code change that improves performance
[x] refactor: A code change that doesn't fix a bug, or add a feature, or improves performance
[ ] style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
[ ] test: Adding missing tests or correcting existing tests

Deployment tag versioning
Has tag in common/version.go been updated or have you added bump-version label to this PR?

[x] No, this PR doesn't involve a new deployment, git tag, docker image tag
[ ] Yes

Breaking change label
Does this PR have the breaking-change label?

[x] No, this PR is not a breaking change
[ ] Yes

The log is too less ,and more log

you can add the "bump-version" tag, then you don't need to manually bump version every time

authors: HAOYUatHZ amoylan2 georgehao

repo: scroll-tech/scroll


text:
Exclude benchmark outputs folder from git.

Running the benchmark.rs file will produce an outputs folder, which is meaningless to include in the repo.
Waiting for #1 since this branch is already based on the updated upstream of WHIR.

Merged in upstream and included in #1.

repo: scroll-tech/whir


text:
Public input aggregation circuit

Description

implements public input aggregation circuit
refactor the above circuit to a separate crate

Issue Link
[link issue here]
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Contents

public input aggregation circuit

Rationale
[design decisions and extended information]
How Has This Been Tested?
cargo test --release test_pi_aggregation_mock_prover
cargo test --release test_pi_aggregation_real_prover

discussion history:

https://github.com/scroll-tech/zkevm-circuits/pull/503
https://github.com/scroll-tech/scroll-zkevm/pull/143

already integrated into #523

repo: scroll-tech/zkevm-circuits


text:
Commenting sexily omits the next line in C files

test.c
comments <--- place your cursor at this line
void foo();

Comment the first line sexily, <Leader>cs, then the void foo(); line disappears.

I  cannot replicate this. Are you sure you don't have something else going on? I copied your example exactly and it works fine for me. Have you tried for example disabling all other plugins?

Found it, the configuration triggers this is:
set foldmethod=syntax
Could you please take a try?

Nope, foldmethod=syntax is the default for me anyway so that's already what I was testing with.
What version of VIM/Neovim are you using? Do you have any fold related plugins?

My minimal reproduced vimrc:
set nocompatible

set foldmethod=syntax

" Plugin manager
if empty(glob('~/.vim/autoload/plug.vim'))
        silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
                \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
        autocmd VimEnter * PlugInstall | source $MYVIMRC
endif

call plug#begin('~/.vim/bundle')

Plug 'scrooloose/nerdcommenter'

call plug#end()

:version
:version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 23 2019 15:11:17)
macOS version
Included patches: 1-2200
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl               +cindent           +cursorshape       +file_in_path      +jumplist          +mksession         +mouse_xterm       +printer           -sound             +terminal          +virtualedit       -xim
+arabic            -clientserver      +dialog_con        +find_in_path      +keymap            +modify_fname      +multi_byte        +profile           +spell             +terminfo          +visual            -xpm
+autocmd           +clipboard         +diff              +float             +lambda            +mouse             +multi_lang        -python            +startuptime       +termresponse      +visualextra       -xsmp
+autochdir         +cmdline_compl     +digraphs          +folding           +langmap           -mouseshape        -mzscheme          +python3           +statusline        +textobjects       +viminfo           -xterm_clipboard
-autoservername    +cmdline_hist      -dnd               -footer            +libcall           +mouse_dec         +netbeans_intg     +quickfix          -sun_workshop      +textprop          +vreplace          -xterm_save
-balloon_eval      +cmdline_info      -ebcdic            +fork()            +linebreak         -mouse_gpm         +num64             +reltime           +syntax            +timers            +wildignore
+balloon_eval_term +comments          +emacs_tags        +gettext           +lispindent        -mouse_jsbterm     +packages          +rightleft         +tag_binary        +title             +wildmenu
-browse            +conceal           +eval              -hangul_input      +listcmds          +mouse_netterm     +path_extra        +ruby              -tag_old_static    -toolbar           +windows
++builtin_terms    +cryptv            +ex_extra          +iconv             +localmap          +mouse_sgr         +perl              +scrollbind        -tag_any_white     +user_commands     +writebackup
+byte_offset       +cscope            +extra_search      +insert_expand     +lua               -mouse_sysmouse    +persistent_undo   +signs             -tcl               +vartabs           -X11
+channel           +cursorbind        -farsi             +job               +menu              +mouse_urxvt       +postscript        +smartindent       +termguicolors     +vertsplit         -xfontset
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -o vim        -lncurses -liconv -lintl -framework AppKit
-L/usr/local/opt/lua/lib -llua5.3 -mmacosx-version-min=10.14 -fstack-protector-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc  -L/usr/local/opt/python
/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -framework CoreFoundation  -lruby.2.6

Confirmed. Also in Neovim.
Incidentally my problem reproducing this was I have this set by default:
let g:NERDCompactSexyComs = 1

As a temporary workaround, the sexy comments work if you start from visual mode, so Shift+V before your <leader>cs should get you there.
PRs welcome if anybody wants to tackle fixing this.

repo: scrooloose/nerdcommenter


text:
When browsing in bookmarks, put bookmark name in window title instead of NERD_tree_2

For easier management with Vim windows:)

This issue is quite old and inactive.  Furthermore, this is a customization that the user could now implement with the NERDTree API.  See the documentation for more information.  Thanks!

authors: domenkozar lifecrisis

repo: scrooloose/nerdtree

license: WTFPL


text:
add extension 'Tooltip'

How about add an extension to create simple tooltip for selected text? I am going to make a pull request to this repository. Any suggestion?

I described in #237 I don't have a plan to support this in the core package.

authors: pangrr philippkuehn

repo: scrumpy/tiptap


text:
Weird behavior of Observable

🐞 Bug report
Description
I hit a weird error around Observable returned from ScullyRoutesService.

getCurrent() method returns an Observable but its subscribe method seems not right one.
available$ is no problem. It's so weird...
🔬 Minimal Reproduction
💻Your Environment
Angular Version:

Angular CLI: 9.0.0-rc.3
Node: 10.16.0
OS: darwin x64
Angular: 9.0.0-rc.3
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Scully Version:

    "@scullyio/init": "^0.0.8",
    "@scullyio/ng-lib": "^0.0.8",
    "@scullyio/scully": "^0.0.53",

🔥 Exception or Error

That error is solved when I add a type assertion of Observable<ScullyRoute>

Originally returned typegetCurrent() is Observable<any[]> | Observable<ScullyRoute> but any[] and ScullyRoute are not compatible. I think it should be Observable<ScullyRoute | null>.

@lacolaco thanks for reporting. I'll update the types.

@SanderElias I have gotten this working. You cool if I take it?

authors: SanderElias aaronfrost lacolaco

repo: scullyio/scully


text:
抖音直播间链接解析成功 但是一直连接中

大概率你的 iP 被 抖音 ban 了


text:
Set up fork

Change the organization name to com.scylladb.alternator
Add the publish workflow and document the publish process.

I need some help here.

Please @tarzanek (and/or @yaronkaikov, @Annamikhlin) review the PR
Please @yaronkaikov or @Annamikhlin add the secrets for the GitHub Actions. We need MAVEN_GPG_PRIVATE_KEY, MAVEN_USERNAME, MAVEN_CENTRAL_TOKEN, and MAVEN_GPG_PASSPHRASE, just like in alternator-load-balancing. We could reuse the same credentials, but I would recommend creating a different GPG key and different Sonatype user token. The Sonatype username will be the same.

I am closing the PR as we don’t want to merge the scylla-5.x branch into the master branch. Instead, we want the scylla-5.x branch to be the default branch in our scylladb fork, which I just set up. We still need the secrets to be set up for publishing, though.

repo: scylladb/emr-dynamodb-connector


text:
Gemini CQL statement logging generates large files

When gemini is run with --test-statement-log-file and --oracle-statement-log-file, after running the program for a longer periods of time, e.g 3h or 10h case, these files are extremly large, to the point that can kill loader instance in SCT. This sometimes happenes after 10 minutes, as having both of these flags, have identical data in them (same size), thats a double the storage needed.
In order to see everything running in gemini, we need to discuss how to implement better CQL statment logging.
Solution #1 (easy solution)
After commit 7c5dda0 fileLogger was changed to accept io.Writer instead of *os.File, this allows us to pass any writter to fileLogger which of the compression alorithms in stdlib are.
As observered in Argus with some failed gemini runs (which sadly they are lost), gzip compression works really good, condensing statement files to a ~50MB or so, when extracted they are ~600MB to 1GB for a 5-10m run (this is the default what SCT does to the log files). We can do the same thing and implementation would be really easy.
Problem with this solution: It will be expensive to log every statement, performance would degrade.
Solution #2
Log only whats necessacy.
Currently gemeni statment logging looks like this
SELECT col1,col2,co3 FROM tbl1 WHERE pk1=VALUE....
INSERT INTO tbl1(pk1, pk2, col1, col2) VALUES(VALUE1, VALUE2, VALUE3)
...

We can store only the query type, columns their values in the file
Store query type and the seed to generate the same CQL statement

Both of the solution require a subcommand for gemini cli to reconstruct all the queries so that we can see them and run them if there is a need. This solution performance wise, is really good, as it makes smaller ammout of write syscalls, but makes in for code complexity for a custom format and reconstruction of CQL statment.
Solution #2 takes a lot longer to implement and validate, but in the ends will be needed, for a short term solution, for us to have the CQL statements in the logs, Solution #1 should be impelemented as a temporary measure until further discussing this issue.

@roydahan FYI

@CodeLieutenant
I would suggest one step at a time.
first option zero, give the tests larger disks so we can run 3h or 10h, it's a simple straightforward configuration in SCT.
then look into option 1,  since it doesn't contradict option 2.

authors: CodeLieutenant fruch

repo: scylladb/gemini


text:
Separate path variable stored in DAW for IR and NAM [FEATURE]

Hi ! Can you ad separate path variable stored when DAW saves session to store IR and NAM paths separatly?
Thank you!

Can you give me some more detail on what you're looking for here?
The IR and NAM paths are currently stored as separate variables: The former as mIRPath and the latter as mNAMPath.

Ah ok, so there are separate variable.  Sorry. But still when i browse for nam file and then i browse for IR the plugin open browser with previous nam path.
I don't know if this is a bug?

authors: damiangr sdatkinson

repo: sdatkinson/NeuralAmpModelerPlugin


text:
Get coordinates at index?

Apologies if this is the wrong place for this; couldn't find anywhere else to ask a question.
Is there anyway to get coordinates from a KdTree index? IE in NearestNeighbour there is a distance and an index field - is there anyway to query KdTree to get the coordinate at this index? Preferably, nearest_one would even return it. I perused the documentation, but couldn't find anything.
I imagine the coordinates are being stored internally, so it seems like it'd be redundant to have to keep an external copy of all the coordinates just for indexing. Correct me if I'm wrong though.

There isn't a way to do this. The suggested use case is to keep a Vec of your co-ords alongside the KdTree if you need to do this. Whilst the co-ords are kept internally, they are not in any kind of suitable datastructure where it is possible to quickly find the co-ords by index, since this is exactly what a Vec is for.

authors: contagon sdd

repo: sdd/kiddo


text:
Recommended hlint rules?

I've been exploring enforcing hlint checks with CI on my Haskell projects. One of the first issues I hit is that hlint thinks id x is redundant, whereas in my Protolude projects, id x is often quite meaningful and it's identity x that would be redundant.
Conversely, I think there might be hlint suggestions that could be made if it knew that Protolude was being imported.
Are there a set of hlint rules for Protolude already extant & could they be shared with the wider community?

Awesome! Want to include them in HLint itself? You can put groups, e.g: https://github.com/ndmitchell/hlint/blob/master/data/hlint.yaml#L648 - disabled by default, and then people who want to use protolude can just enable the group.

Yeah, this might be best to submit upstream if @ndmitchell is cool with this.

Will do so. I can only think of the id => identity thing for now, but I guess I (or others) can always send follow-up PRs as they discover protolude-inspired suggestions.

authors: jml ndmitchell sdiehl

repo: sdiehl/protolude


text:
Add warning message field for CommandResult

CommandResult only has a single field feedbackToUser. It is used only for a single purpose (either for success or for failure).
There may be cases where commands have both a successful message + warning message.

Modify the CommandResult class to include another String for a warning message.
Modify the GUI to support having different variety of message (e.g. white text for successful message, yellow text for warning message displayed right below it). Suggested component to do that: JavaFX's TextFlow class.

Should we close this? #404 is resolving this but referencing to another issue.

Superseded by #457.

authors: Zhiyuan-Amos yamgent


text:
Cannot get service components and access url

Describe the bug

Steps to reproduce

Create a service using webservice template.
Go to the service details page.

Result

The service components and access url are empty.
And it needs to update the name to Components.

Expected behavior

Environment

Walrus version: main 9e14c25ece772fbb582b0be93a0fdb5e486fd53e
UI version: dev-d6bb36d

Additional context
Add any other context about the problem here.

Environment

Walrus version: main a3e5c0343d3e831ca30e4fd76a160212bc5bba7f
UI version: dev-4b1fd17

Test Result: pass

repo: seal-io/walrus


text:
The default values of primitive types in the array are not displayed

Describe the bug

Steps to reproduce

Go to Operations page.
Edit template builtin/kubernetes-containerservice.
Set a default value to image.

Check the UI schema and preview.

Result

It did not show the default value for image.

Expected behavior

Environment

Walrus version: v0.5.1-rc2

Additional context
Add any other context about the problem here.

Environment

Walrus version: main 700d971e404e208e929bcbb088ec974f07c871c0
UI version: dev-7fa18e0

Test Result: pass


text:
Update build configuration

The build configuration of this project is outdated and may no longer work.
This pull request will be merged automatically if there are no conflicts.

:tada: This PR is included in version 2.4.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: sealsystems/node-log


text:
Update build configuration

The build configuration of this project is outdated and may no longer work.
This pull request will be merged automatically if there are no conflicts.

:tada: This PR is included in version 4.0.29 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: sealsystems/node-request-service


text:
Use rustls default provider unless specified

Starting from rustls 0.23, the backend provider is aws-lc-rs. However, request hard coded many rings, especially the default rustls-tls feature. Will this change in the future to use the default setup from rustls unless some more other features specified?

I hope that ring would still remain an option even if aws-lc-rs. For those without compliance need, ring is much more lightweight.

I hope that ring would still remain an option even if aws-lc-rs. For those without compliance need, ring is much more lightweight.

I think the library should not eliminate the potential to have another choice. Mixing ring and awl-lc-rs in one project, due to dependency configuration (if none of libraries were providing choices to users), is breaking the "lightweight" rule.
My current implementation is to build the requester myself:
use std::sync::OnceLock;

use reqwest::Client;
use rustls::{ClientConfig, RootCertStore};
use webpki_roots::TLS_SERVER_ROOTS;

static HTTP_CLIENT: OnceLock<Client> = OnceLock::new();

pub fn client() -> Client {
	HTTP_CLIENT.get_or_init(init_client).clone()
}

fn init_client() -> Client {
	static USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"),);

	let cert_store: RootCertStore = TLS_SERVER_ROOTS.iter().cloned().collect();
	let mut tls = ClientConfig::builder().with_root_certificates(cert_store).with_no_client_auth();
	tls.enable_early_data = true;
	tls.alpn_protocols = vec!["h2".into(), "http/1.1".into()];

	let client = Client::builder().use_preconfigured_tls(tls).user_agent(USER_AGENT).build();
	match client {
		Ok(client) => client,
		Err(e) => {
			log::error!("{e}");
			panic!("{e}");
		}
	}
}

Most of the code to build the Client is copied from reqwest, and no hard coding ring or was_lc_rs. However, install_default() should be called before the client initialized.

ring may be lightweight but aws-lc could have other benefits.

Seems to be covered well here: https://www.reddit.com/r/rust/comments/1de13y6/ring_vs_awslcrs/

authors: Congyuwang GreenYun polarathene

repo: seanmonstar/reqwest


text:
Update to time 0.2

See also https://github.com/hyperium/hyper/pull/2139

Done in #946

authors: camsteffen sdroege


text:
NodeChecker fallback to configured servers could result in DOS

For https://github.com/searchbox-io/Jest/issues/287, @gilbode enhanced NodeChecker to fallback to the configured list of servers when Node Discovery fails due to an Exception.  I ran into an issue where this behavior can cause the client to never recover:  if the configured set of servers are unavailable and do not recover.
For example, I configure my client with ServerA and Node Discovery.  My cluster may have 50 nodes, but if ServerA goes down, if the NodeChecker happens to connect to ServerA to discover the cluster nodes, it will fail and then fall back to the configured list of servers for discovery, which is just ServerA.  The only recovery path (without stopping and reconfiguring the client) is to restart ServerA.
It seems that a more reliable solution would be for NodeChecker to remove the 'defunct' server from the list of servers used by JestClient.

@bmlining this can be closed right?

https://github.com/searchbox-io/Jest/pull/367 resolves this.

repo: searchbox-io/Jest


text:
[Feature] Array input values

Hi there,
I really admire the time and effort you guys have put into this project, and I want to contribute to it. The feature idea is not mine, but from the team leader of my project, who wants to use remix-froms but needs an array input in the application.
The difficulty with an array input is that it is not really natively supported by HTML (apart from using multiple inputs or separating by some delimiter, which are both inelegantly). To still make it work without JS, I would propose the following:
The input sends a request to an API whenever an element is added or removed, the API then returns the form element just with an updated list of the elements inside. That way for the developers it just works and is a very convenient feature, even outperforming the native HTML in a clean manner. The only drawback might be a bit more traffic, but that shouldn't be any problem.
https://www.youtube.com/watch?v=w2i-9cYxSdc&list=PLXoynULbYuEDG2wBFSZ66b85EIspy3fy6&index=4 -> This as a native input type without a database behind but instead as a kind of "recursive" element
I would appreciate if we could work together to make this work and to hear feedback from you.
Thanks in advance <3

I just get caught by this missing feature. What could we do to start make it work? I could try to help on this.

I don't know if you saw, but I already did some thinking and also created a prototype version (see here), but in the end it just didn't feel right.

repo: seasonedcc/remix-forms


text:
switch from arboard to cli-clipboard to support wayland

I found that my clipboard wasn't getting set by arboard, and it seems like it just doesn't support wayland's clipboard.
cli-clipboard seems to work on wayland. It claims to support x11 + wayland + macos + windows.

nvm, just found arboard optionally supports wayland, will open separate PR to enable it

repo: seatedro/glimpse


text:
Bugfix - Ensure to unmarshall keys in query's read method

When trying to use the cache in https://github.com/sebelga/gstore-node, I noticed that in certain cases I'd get the following error:
TypeError: Cannot read property 'path' of undefined
    at idFromKey (node_modules/gstore-node/lib/serializers/datastore.js:112:24)
    at Function.convertToJson (node_modules/gstore-node/lib/serializers/datastore.js:85:17)
    at Function.fromDatastore (node_modules/gstore-node/lib/serializers/datastore.js:72:34)
    at entities.map.entity (node_modules/gstore-node/lib/query.js:54:55)
    at Array.map (<anonymous>)
    at onQuery (node_modules/gstore-node/lib/query.js:53:37)

    at tryCatcher (node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:785:20)
    at tryOnImmediate (timers.js:747:5)

This seems to suggest that redis cache was returning a and entity which did not have a symbol, and indeed it was.
I'm not 100% certain on the fix, as I've only adopted it to response formats I've seen in my usage, but I'm happy to update this to a better solution or maybe a method that I should use to unmarshall keys in query results.

Hello,
I finally had a look into this and you were right, it was missing the unmarshall of the keys on the read() method. I just added some tests and made a new release (v 1.1.1).
I could not use your commit as I needed a conventional commit message for the bump of the package version.
Thanks again for reporting this! 👍

authors: jutaz sebelga

repo: sebelga/nsql-cache


text:
Switch to go modules

Add a common vendor make target as well.
Closes #7

LGTM
@vrothberg PTAL

LGTM, thanks @saschagrunert. (someone else must merge)

authors: rhatdan saschagrunert vrothberg

repo: seccomp/containers-golang


text:
SRV-439 - performance optimizations for string handling in xml formatting

A number of small perf optimizations:

use 'translate' to translate all xml characters at once instead of doing multiple string translation passes.
construct strings inline using writelines instead of doing it through a function, in order to save function call cost.
Also, includes SL-19700 - limit of 200 on depth for formatting and parsing (all types)

I haven't been following closely, but make sure you get the

Performance optimizations are merged.

authors: LogLinden roxanneskelly

repo: secondlife/python-llsd


text:
打包隐语镜像，执行翻译脚本报错：translators.server.TranslatorError

Issue Type
Bug
Source
binary
Secretflow Version
secretpad all in one 1.9.0b2
OS Platform and Distribution
CentOS Linux 7
Python version
3.10.13
Bazel version
No response
GCC/Compiler version
No response
What happend and What you expected to happen.
脚本执行环境根据release-ci.DockerFile(https://github.com/secretflow/devtools/blob/main/dockerfiles/release-ci.DockerFile)制作的镜像

执行步骤参考：https://www.secretflow.org.cn/zh-CN/docs/secretpad-all-in-one/v1.9.0b2/more_tutorials/new_components

执行脚本env PYTHONPATH=$PYTHONPATH:$PWD/.. python update_meta.py时报错

Reproduction code to reproduce the issue.
(base) [root@phy-10-1-252-122 docker]# env PYTHONPATH=$PYTHONPATH:$PWD/.. python update_meta.py
Since the GPL-licensed package `unidecode` is not installed, using Python's `unicodedata` package which yields worse results.
INFO:root:1. Update secretflow comp list.
INFO:root:2. Update translation.
Traceback (most recent call last):
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 296, in _wrapper
    return func(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 117, in _wrapper
    return func(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 288, in _wrapper
    return func(*args, **{**kwargs, **{'query_text': query_text}})
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 738, in baidu_api
    return data if is_detail_result else '\n'.join([item['dst'] for item in data['data']])
KeyError: 'data'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/secretflow/docker/update_meta.py", line 68, in <module>
    trans = translate(gettext(COMP_LIST, archieve), args.translator)
  File "/data/secretflow/docker/update_meta.py", line 45, in translate
    else ts.translate_text(k, to_language=LANG, translator=translator)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 5662, in translate_text
    return self.translators_dict[translator](query_text=query_text, from_language=from_language, to_language=to_language, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 301, in _wrapper
    raise TranslatorError(f'{raise_tips1} {raise_tips2}')
translators.server.TranslatorError: The function baidu() has been not certified yet. Please read for details: Status of Translator on this webpage(https://github.com/UlionTse/translators#supported-translation-services).

手动安装一下pip install unidecode后重新尝试一下看看

安装后问题依然存在，报错还是跟上面一致

使用alibaba或者默认，执行测试代码不会报错
(base) [root@phy-10-1-252-122 docker]# python
Python 3.10.13 | packaged by conda-forge | (main, Dec 23 2023, 15:36:39) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import translators as ts
>>> q_text = '季姬寂，集鸡，鸡即棘鸡。棘鸡饥叽，季姬及箕稷济鸡。'
>>> print(ts.translate_text(q_text))
Ji Ji lonely, set chickens, chickens are thorny chickens. The thorny chicken is hungry, Ji Ji and the Ji Ji chicken.
>>> print(ts.translate_text(q_text, translator='baidu'))
Traceback (most recent call last):
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 296, in _wrapper
    return func(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 117, in _wrapper
    return func(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 288, in _wrapper
    return func(*args, **{**kwargs, **{'query_text': query_text}})
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 738, in baidu_api
    return data if is_detail_result else '\n'.join([item['dst'] for item in data['data']])
KeyError: 'data'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 5662, in translate_text
    return self.translators_dict[translator](query_text=query_text, from_language=from_language, to_language=to_language, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 301, in _wrapper
    raise TranslatorError(f'{raise_tips1} {raise_tips2}')
translators.server.TranslatorError: The function baidu() has been not certified yet. Please read for details: Status of Translator on this webpage(https://github.com/UlionTse/translators#supported-translation-services).
>>> print(ts.translate_text(q_text, translator='alibaba'))
Ji Ji Ji, set chicken, chicken is spined chicken. The spiny chicken is hungry, Ji Ji and Ji Ji Ji Ji Ji chicken.

将脚本update_meta.py中的baidu改成alibaba将会报如下错误：
最后进行翻译的key是user
...
input_data
Input table.
features
perform statistics on these columns
report
Output table statistics report.
user
Traceback (most recent call last):
  File "/data/secretflow/docker/update_meta.py", line 69, in <module>
    trans = translate(gettext(COMP_LIST, archieve), args.translator)
  File "/data/secretflow/docker/update_meta.py", line 46, in translate
    else ts.translate_text(k, to_language=LANG, translator=translator)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 5662, in translate_text
    return self.translators_dict[translator](query_text=query_text, from_language=from_language, to_language=to_language, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 117, in _wrapper
    return func(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 288, in _wrapper
    return func(*args, **{**kwargs, **{'query_text': query_text}})
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 1647, in alibaba_api
    from_language, to_language = self.check_language(from_language, to_language, self.language_map, self.output_zh)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 200, in check_language
    raise TranslatorError(f'from_language[{from_language}] and to_language[{to_language}] should not be same.')
translators.server.TranslatorError: from_language[zh] and to_language[zh] should not be same.

手动安装一下pip install unidecode后重新尝试一下看看

将脚本update_meta.py中的baidu改成alibaba将会报如下错误： 最后进行翻译的key是user
...
input_data
Input table.
features
perform statistics on these columns
report
Output table statistics report.
user
Traceback (most recent call last):
  File "/data/secretflow/docker/update_meta.py", line 69, in <module>
    trans = translate(gettext(COMP_LIST, archieve), args.translator)
  File "/data/secretflow/docker/update_meta.py", line 46, in translate
    else ts.translate_text(k, to_language=LANG, translator=translator)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 5662, in translate_text
    return self.translators_dict[translator](query_text=query_text, from_language=from_language, to_language=to_language, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 117, in _wrapper
    return func(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 288, in _wrapper
    return func(*args, **{**kwargs, **{'query_text': query_text}})
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 1647, in alibaba_api
    from_language, to_language = self.check_language(from_language, to_language, self.language_map, self.output_zh)
  File "/root/miniconda3/lib/python3.10/site-packages/translators/server.py", line 200, in check_language
    raise TranslatorError(f'from_language[{from_language}] and to_language[{to_language}] should not be same.')
translators.server.TranslatorError: from_language[zh] and to_language[zh] should not be same.

env PYTHONPATH=$PYTHONPATH:$PWD/.. python  update_meta.py -t alibaba  试试

依然是上面的错误，代码里面我加了一个打印输出：
def translate(input, translator):
    output = {}

    for comp, comp_text in input.items():
        comp_translation = {}

        for k, v in comp_text.items():
            print(k)
            comp_translation[k] = (
                v
                if v != ""
                else ts.translate_text(k, to_language=LANG, translator=translator)
            )

        output[comp] = comp_translation

    return output

执行git比对结果如下
(base) [root@phy-10-1-252-122 docker]# git diff comp_list.json
diff --git a/docker/comp_list.json b/docker/comp_list.json
index abcd0c0..0406a5c 100644
--- a/docker/comp_list.json
+++ b/docker/comp_list.json
@@ -4409,6 +4409,67 @@
           ]
         }
       ]
+    },
+    {
+      "domain": "user",
+      "name": "ss_compare",
+      "desc": "compare two tables.",
+      "version": "0.0.1",
+      "attrs": [
+        {
+          "name": "tolerance",
+          "desc": "two numbers to be equal if they are within tolerance.",
+          "type": "AT_INT",
+          "atomic": {
+            "isOptional": true,
+            "defaultValue": {
+              "i64": "10"
+            },
+            "lowerBoundEnabled": true,
+            "lowerBound": {},
+            "lowerBoundInclusive": true
+          }
+        }
+      ],
+      "inputs": [
+        {
+          "name": "input_table",
+          "desc": "Input vertical table",
+          "types": [
+            "sf.table.vertical_table"
+          ],
+          "attrs": [
+            {
+              "name": "alice_value",
+              "desc": "Column(s) used to compare.",
+              "colMinCntInclusive": "1",
+              "colMaxCntInclusive": "1"
+            },
+            {
+              "name": "bob_value",
+              "desc": "Column(s) used to compare.",
+              "colMinCntInclusive": "1",
+              "colMaxCntInclusive": "1"
+            }
+          ]

问题解决了，目前应该是baidu不可用，我默认设置为alibaba

问题解决了，目前应该是baidu不可用，将默认设置为alibaba
parser.add_argument(
'-t', '--translator', type=str, required=False, default="alibaba"
)
翻译的代码增加from_language='en'
ts.translate_text(k, from_language='en', to_language=LANG, translator=translator)
你看这个改动是否合理

问题解决了，目前应该是baidu不可用，将默认设置为alibaba parser.add_argument( '-t', '--translator', type=str, required=False, default="alibaba" )
翻译的代码增加from_language='en' ts.translate_text(k, from_language='en', to_language=LANG, translator=translator)
你看这个改动是否合理

确认可用即可，调用翻译的文件主要就是翻译组件信息的。

authors: magic-hya wangzul

repo: secretflow/secretflow


text:
联邦学习纵向逻辑回归双方40w数据异常报错

Issue Type
Bug
Source
binary
Secretflow Version
secretflow 0.7.18b3  secretflow-ray  2.2.0 secretflow-rayfed  0.1.0b1 spu  0.3.1b9
OS Platform and Distribution
Linux version 3.10.0-693.el7.x86_64
Python version
3.8.13
Bazel version
No response
GCC/Compiler version
gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
What happend and What you expected to happen.
使用双方40w 各300维数据进行联邦学习纵向逻辑回归到时候，在执行fit方法的时候，代码报错，直接崩溃
(SendProxyActor pid=30634) *** SIGSEGV received at time=1677466827 on cpu 17 ***
(SendProxyActor pid=30634) PC: @     0x55a53a8ff201  (unknown)  type_dealloc
(SendProxyActor pid=30634)     @     0x7f9faa00a630  (unknown)  (unknown)
(SendProxyActor pid=30634)     @     0x55a53aad4300  (unknown)  (unknown)
(SendProxyActor pid=30634) *** Error in `ray::SendProxyActor': malloc(): smallbin double linked list corrupted: 0x00007f9ab817d640 ***
(SendProxyActor pid=30634) ======= Backtrace: =========
(SendProxyActor pid=30634) /lib64/libc.so.6(+0x7f474)[0x7f9fa9cac474]
下面就是打印memory map的信息，最后的报错
(SendProxyActor pid=30634) ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
(SendProxyActor pid=30634) [failure_signal_handler.cc : 331] RAW: Signal 6 raised at PC=0x7f9fa9c63387 while already in AbslFailureSignalHandler()
(SendProxyActor pid=30634) *** SIGABRT received at time=1677466828 on cpu 17 ***
(SendProxyActor pid=30634) PC: @     0x7f9fa9c63387  (unknown)  raise
(SendProxyActor pid=30634)     @     0x7f9faa00a630       5936  (unknown)
(SendProxyActor pid=30634)     @     0x7f9fa9cac474         16  malloc_printerr
(SendProxyActor pid=30634)     @ 0x3034366437313862  (unknown)  (unknown)
(SendProxyActor pid=30634) [2023-02-27 11:00:29,054 E 30634 30688] logging.cc:361: *** SIGABRT received at time=1677466829 on cpu 17 ***
(SendProxyActor pid=30634) [2023-02-27 11:00:29,093 E 30634 30688] logging.cc:361: PC: @     0x7f9fa9c63387  (unknown)  raise
(SendProxyActor pid=30634) [2023-02-27 11:00:29,226 E 30634 30688] logging.cc:361:     @     0x7f9faa00a630       5936  (unknown)
(SendProxyActor pid=30634) [2023-02-27 11:00:29,226 E 30634 30688] logging.cc:361:     @     0x7f9fa9cac474         16  malloc_printerr
(SendProxyActor pid=30634) [2023-02-27 11:00:29,346 E 30634 30688] logging.cc:361:     @ 0x3034366437313862  (unknown)  (unknown)
(SendProxyActor pid=30634) Fatal Python error: Aborted
(SendProxyActor pid=30634)
(SendProxyActor pid=30634) Stack (most recent call first):
(SendProxyActor pid=30634) <no Python frame>
2023-02-27 11:00:38,944	WARNING worker.py:1853 -- A worker died or was killed while executing a task by an unexpected system error. To troubleshoot the problem, check the logs for the dead worker. RayTask ID: ffffffffffffffff40afe7d5b279539e342b996605000000 Worker ID: c3a867e513647bce835f619287f153ec15a6a1df2d687441456c5e20 Node ID: 6becb4c1e74222f7d6ab256a1eb9b97a355385990fbff70d3de12e84 Worker IP address: 172.16.4.61 Worker port: 10030 Worker PID: 30634 Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exits with a connection error code 2. End of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called. (3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.
2023-02-27 11:00:38 WARNING fed.cleanup [nodeA] --  Failed to send ObjectRef(8d6d80902912c90440afe7d5b279539e342b99660500000001000000) with error: The actor died unexpectedly before finishing this task.

Reproduction code to reproduce the issue.
import time

import requests
import spu as spu

import secretflow as sf
import numpy as np
import pandas as pd
import jax.numpy as jnp
from secretflow.data.vertical import VDataFrame
from secretflow.data.base import Partition
from secretflow.preprocessing import StandardScaler
from secretflow.security.aggregation.plain_aggregator import PlainAggregator
from secretflow.ml.linear.fl_lr_v import FlLogisticRegressionVertical
from sklearn.metrics import roc_auc_score

class timecollect:

    def start(self):
        self.start = time.time()

    def end(self):
        return time.time()-self.start
timecollect = timecollect()

timecollect.start()
sf.shutdown()
cluster_config ={
    'parties': {
        'nodeA': {
            # replace with alice's real address.
            'address': '172.16.4.61:6325',
            'listen_addr': '0.0.0.0:6325'
        },
        'nodeB': {
            # replace with bob's real address.
            'address': '172.16.4.62:6325',
            'listen_addr': '0.0.0.0:6325'
        },
        'nodeC': {
            # replace with bob's real address.
            'address': '172.16.4.63:6325',
            'listen_addr': '0.0.0.0:6325'
        },
    },
    'self_party': 'nodeA'
}
sf.init( address='172.16.4.61:6324', cluster_config=cluster_config)
nodeA, nodeB= sf.PYU('nodeA'), sf.PYU('nodeB')
nodeC = sf.PYU('nodeC')

def make_dataG():
    df = pd.read_csv('/data/secretflow/data/train-1-40-300.csv')
    return df

def getX_G():
    df = pd.read_csv('/data/secretflow/data/train-1-40-300.csv', usecols=[i for i in range(2,302)])
    return df

def getY_G():
    df = pd.read_csv('/data/secretflow/data/train-1-40-300.csv', usecols=[1])
    return df

def getX_H():
    df = pd.read_csv('/data/secretflow/data/train-2-40-300.csv', usecols=[i for i in range(1,301)])
    return df

x = VDataFrame(
            partitions={
                nodeA: Partition(nodeA(getX_G)()),
                nodeB: Partition(nodeB(getX_H)()),
            }
        )
x = StandardScaler().fit_transform(x)
y = VDataFrame(
    partitions={nodeA: Partition(nodeA(getY_G)())}
)
print(f"prepare data over")
heu_config = {
            'sk_keeper': {'party': 'nodeA'},
            'evaluators': [{'party': 'nodeB'}],
            'mode': 'PHEU',
            'he_parameters': {
                'schema': 'paillier',
                'key_pair': {'generate': {'bit_size': 256}},
            },
        }

heu = sf.HEU(heu_config, spu.spu_pb2.FM128)

# GIVEN
aggregator = PlainAggregator(nodeA)

model = FlLogisticRegressionVertical(
    [nodeA, nodeB], aggregator, heu
)

print(f"init FlLogisticRegressionVertical over")

# WHEN
model.fit(x, y, epochs=1, batch_size=4000)
print(f"fit over")

y_pred = model.predict(x)
print(f"predict over")

y = y.values.partitions[nodeA]
auc = nodeA(roc_auc_score)(y, y_pred)
acc = nodeA(lambda y_true, y_pred: np.mean((y_pred > 0.5) == y_true))(
    y, y_pred
)

# THEN
auc = sf.reveal(auc)
acc = sf.reveal(acc)
print(f'auc={auc}, acc={acc}')

def recive(result_array):
    np.savetxt(np.array(result_array), '/data/secretflow/fl2_result')

timecost = timecollect.end()
print(f"timecost = {timecost}")

with open('./fl2_timecost', 'w') as f1:
    f1.write(f"fl2 time cost {timecost}")
print("over")
sf.shutdown()

hi, @shinobi6xp , 可以检查下你的内存配置，以及运行时通过top观察下内存。
FlLogisticRegressionVertical使用了同态，对内存的要求比较高。

hi, @shinobi6xp , 可以检查下你的内存配置，以及运行时通过top观察下内存。
FlLogisticRegressionVertical使用了同态，对内存的要求比较高。

你好，我们使用普罗米修斯观察，发现内存波动不是很大，远远没达到我们机器的极限，并且我们还预留了很多的交换内存

可以发一下三方运行的代码吗

可以发一下三方运行的代码吗

import time
import requests
import spu as spu
import secretflow as sf
import numpy as np
import pandas as pd
import jax.numpy as jnp
from secretflow.data.vertical import VDataFrame
from secretflow.data.base import Partition
from secretflow.preprocessing import StandardScaler
from secretflow.security.aggregation.plain_aggregator import PlainAggregator
from secretflow.ml.linear.fl_lr_v import FlLogisticRegressionVertical
from sklearn.metrics import roc_auc_score
class timecollect:
def start(self):
    self.start = time.time()

def end(self):
    return time.time()-self.start

timecollect = timecollect()
timecollect.start()
sf.shutdown()
cluster_config ={
'parties': {
'nodeA': {
# replace with alice's real address.
'address': '172.16.4.61:6325',
'listen_addr': '0.0.0.0:6325'
},
'nodeB': {
# replace with bob's real address.
'address': '172.16.4.62:6325',
'listen_addr': '0.0.0.0:6325'
},
'nodeC': {
# replace with bob's real address.
'address': '172.16.4.63:6325',
'listen_addr': '0.0.0.0:6325'
},
},
'self_party': 'nodeA'
}
sf.init( address='172.16.4.61:6324', cluster_config=cluster_config)
nodeA, nodeB= sf.PYU('nodeA'), sf.PYU('nodeB')
nodeC = sf.PYU('nodeC')
def make_dataG():
df = pd.read_csv('/data/secretflow/data/train-1-40-300.csv')
return df
def getX_G():
df = pd.read_csv('/data/secretflow/data/train-1-40-300.csv', usecols=[i for i in range(2,302)])
return df
def getY_G():
df = pd.read_csv('/data/secretflow/data/train-1-40-300.csv', usecols=[1])
return df
def getX_H():
df = pd.read_csv('/data/secretflow/data/train-2-40-300.csv', usecols=[i for i in range(1,301)])
return df
x = VDataFrame(
partitions={
nodeA: Partition(nodeA(getX_G)()),
nodeB: Partition(nodeB(getX_H)()),
}
)
x = StandardScaler().fit_transform(x)
y = VDataFrame(
partitions={nodeA: Partition(nodeA(getY_G)())}
)
print(f"prepare data over")
heu_config = {
'sk_keeper': {'party': 'nodeA'},
'evaluators': [{'party': 'nodeB'}],
'mode': 'PHEU',
'he_parameters': {
'schema': 'paillier',
'key_pair': {'generate': {'bit_size': 256}},
},
}
heu = sf.HEU(heu_config, spu.spu_pb2.FM128)
GIVEN
aggregator = PlainAggregator(nodeA)
model = FlLogisticRegressionVertical(
[nodeA, nodeB], aggregator, heu
)
print(f"init FlLogisticRegressionVertical over")
WHEN
model.fit(x, y, epochs=1, batch_size=4000)
print(f"fit over")
y_pred = model.predict(x)
print(f"predict over")
y = y.values.partitions[nodeA]
auc = nodeA(roc_auc_score)(y, y_pred)
acc = nodeA(lambda y_true, y_pred: np.mean((y_pred > 0.5) == y_true))(
y, y_pred
)
THEN
auc = sf.reveal(auc)
acc = sf.reveal(acc)
print(f'auc={auc}, acc={acc}')
def recive(result_array):
np.savetxt(np.array(result_array), '/data/secretflow/fl2_result')
timecost = timecollect.end()
print(f"timecost = {timecost}")
with open('./fl2_timecost', 'w') as f1:
f1.write(f"fl2 time cost {timecost}")
print("over")
sf.shutdown()
代码如上，三方代码只在 'self_party': 'nodeA' 和sf.init里面的ip做了修改

@shinobi6xp ，代码粗看没有问题。可以提供一下你使用的各个测试数据的schema和样本吗？方便我们mock数据进行验证。

@shinobi6xp ，代码粗看没有问题。可以提供一下你使用的各个测试数据的schema和样本数量吗？方便我们mock数据进行验证。

该数据是根据信通院测试数据裁剪而成的，第一方如图

第二方如图


text:
[Languages] Send Email by means of SMTP Server in Laravel utilizing PHPMailer

Proposed title of article
Send Email by means of SMTP Server in Laravel utilizing PHPMailer
Proposed article introduction
You normally utilize the local mail() method to send messages from a PHP-based web application. however, PHP's mail() work now and then and may neglect to send messages or to send information to spam directories. Hence, it is constantly suggested that SMTP servers send messages from scripts in web applications. The PHPMailer library gives a simple method for sending email through a SMTP server utilizing PHP. This article e tells the best way to utilize PHPMailer to send an email through Laravel's SMTP server.
Key takeaways

Command to install PHPMailer via Composer in your Laravel application
Load exception classes and PHPMailer
Initialize the PHPMailer and configure SMTP and mail
Send email via Gmail SMTP server in Laravel

Gmail (my account page) and two-step verification

Setting credentials in Laravel

Article quality
This article explains in detail how to send email via SMTP Server in Laravel and PHP in a precise manner for easy understanding and practice thereafter.
References
N/A

This article here also uses PHPMailer to send emails. Check it out

This article here also uses PHPMailer to send emails. Check it out
Hello, @WanjaMIKE  I've checked the possibility of there being a similar article but I couldn't get feedback.

This article here https://github.com/section-engineering-education/engineering-education/pull/3371

This article here #3371

checked.

@WanjaMIKE  it appears to be a duplicate .thanks

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

authors: Freshiah Njengab WanjaMIKE


text:
How to Build an Image Classifier with Keras

update branch
Article Checklist
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

NOTE: (1st time contributors - submit ONLY one article to get familiar with the process and style-once published, you can then submit any number of articles.)
Grammar Checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical Checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution Guidelines
For first-time contributors and for more details, see Contributing Guidelines

Change the title of the pr to title of the article. Also, check the boxes in the checklist whichever is applicable.

Change the title of the pr to title of the article. Also, check the boxes in the checklist whichever is applicable.

Added a folder image-classifier-keras.
Wrote an article about how to build an Image Classifier using Keras with a TensorFlow backend.
There are images of code output in the folder along with memes to aid explanation.
Some images are original while others are from the internet, the sources have been provided.

Added a folder image-classifier-keras.
Wrote an article about how to build an Image Classifier using Keras with a TensorFlow backend.
There are images of code output in the folder along with memes to aid explanation.
Some images are original while others are from the internet, the sources have been provided.

Can you add a hero image?

Can you add a hero image?

This fixes #1072

This fixes #1072

plagiarism check done

plagiarism check done

Also, we will need a short bio and a headshot pic of you. Look at the authors folder for more information.

Also, we will need a short bio and a headshot pic of you. Look at the authors folder for more information.

Are the changes done? Notify us after all the changes are made.

All the changes have been made.

All the changes have been made.

authors: Inyrkz hectorkambow lalith1403


text:
Device starting commands to be run through "java -jar" instead of "mvn exec:java"

In the device readme https://github.com/secure-device-onboard/pri-fidoiot/blob/master/component-samples/demo/device/README.md, observed the following command.
Observed: mvn -Dfidoalliance.fdo.url.di= -Dfidoalliance.fdo.pem.dev= exec:java
Expected: java -jar -Dfidoalliance.fdo.url.di= -Dfidoalliance.fdo.pem.dev= device.jar

Fixed in #237

Fixed in #237

repo: secure-device-onboard/pri-fidoiot


text:
Add a ujust command that applies highest supported flatpak malloc hwcap

This script runs ld-linux-x86-64.so.2 --help to identify supported microarchitectures, then applies a flatpak override to set LD_PRELOAD to load the highest supported hwcap for libhardened_malloc.so
This could instead be added to yafti (see #323), seeing as the script requires no user input and should work on all x86_64 devices. The script only edits the flatpak override if v2, v3, or v4 support is detected, so it should run after, and not replace the current override command in yafti.

Thanks for this! I left some comments

I just realized there's a harden-flatpak ujust command. I don't think my hwcap selection script should be separate from it. If the two separate commands are present, a user may inadvertently remove optimization by running ujust harden-flatpak after ujust optimize-flatpak-hardened-malloc, replacing the LD_PRELOAD envar with the default (v1) value.

I just realized there's a harden-flatpak ujust command. I don't think my hwcap selection logic should be separate from it. If the two separate commands are present, a user may inadvertently remove optimization by running ujust harden-flatpak after ujust optimize-flatpak-hardened-malloc, replacing the LD_PRELOAD envar with the default (v1) value.
I think it's best we instead add my new optimization logic to the existing harden-flatpak ujust command.

agreed

@spaceoden please tag me once this is ready for review

@qoijjj its ready for review

@spaceoden you still have merge conflicts

made a new PR #346

authors: qoijjj spaceoden

repo: secureblue/secureblue


text:
updated README.md with additional documentation

@zeroSteiner here is the documentation.  Please double check for accuracy/completeness.

This looks great, thanks @jamcut! Will land in a sec.

authors: jamcut zeroSteiner

repo: securestate/syringe


text:
feat: add background to codeblocks

Changes
preview styles were changed so that code blocks now have gray background.
Styles were taken from the original github markdown css

Looks like #495 missed that Markdown should also work with /document/acknowledgments[]/summary and /vulnerabilities[]/acknowledgments[]/summary. Could you please fix that as well? The original content for this PR is ok.

Yes you're right. I fixed the template accordingly

repo: secvisogram/secvisogram


text:
feat(JobCard): add selected effect

Reason for change
Add a props isSelected to set selected style for JobCard component.
https://realtimeboard.com/app/board/o9J_kzK68Z8=/?moveToWidget=3074457346150011938

Preview:
http://seek-asia-style-guide--e44281023d11f12998ffd7eb785409e59b05a2c4.surge.sh/jobCard

@mengtzu and @hscgavin please help to review again, sorry about that. Just got an update from designer there will be no frame / border for selected status, only background color changed.

repo: seekinternational/seek-asia-style-guide


text:
插槽在低版本vue上不可用，怎么办？

vue版本2.6.13可以正常显示
但是目前项目里用的是2.6.10，升级版本会有一些其他问题，不敢随便升级，请问有什么别的方案吗？

对于低版本的vue，如果插槽无法使用，可以通过额外设置以下选项来解决：
    ovUseNodeSlot: true, // 仅当你需要使用自定义节点插槽时才需要设置为true     ovUseLineSlot: true, // 仅当你需要使用自定义连线插槽时才需要设置为true     ovUseToolbarSlot: true,  // 仅当你需要使用自定义工具栏插槽时才需要设置为true

问有什

非常感谢，我找到之前的回答了，也处理好了这个问题，后续如有需要，一定支持一些，很不错的项目，感谢分享，加油！

authors: qingyun1029 seeksdream sorrytaobao

repo: seeksdream/relation-graph


text:
Add logging to each command

Each command should log when was run and some of the data that was run with.

Added in commit 27b94177ce885451db214d0c7dfcb34c3d4d3caa -> pull request #123


text:
Bug: cannot cancel io redirection

Steps
ydsh-0.18$ cat < /dev/dri/renderD128

Problem
cannot interrupt by ctrl-c

close in commit e729761f2bf311a72daa061a00057e026799a7b4

repo: sekiguchi-nagisa/ydsh


text:
[noob question] make -j 4 failing on rpi 400

Hi all 👋🏻
For context, I'm trying to build ffmpeg from source on a raspberry pi 400 running Raspbian bullseye (latest version).
When I try to build zimg as one of its dependencies, I get a bunch of errors like:
$ /home/pi/AgentDVR/ffmpeg-v5/workspace/bin/libtoolize -i -f -q
$ ./autogen.sh --prefix=/home/pi/AgentDVR/ffmpeg-v5/workspace
$ ./configure --prefix=/home/pi/AgentDVR/ffmpeg-v5/workspace --disable-static --enable-shared
$ make -j 4
make[1]: Entering directory '/home/pi/AgentDVR/ffmpeg-v5/packages/zimg/zimg-release-3.0.4'
  CXX      dummy.lo
  CXX      src/zimg/colorspace/arm/libneon_la-operation_impl_neon.lo
  CXX      src/zimg/depth/arm/libneon_la-dither_neon.lo
  CXX      src/zimg/depth/arm/libneon_la-depth_convert_neon.lo
  CXX      src/zimg/depth/arm/libneon_la-f16c_neon.lo
In file included from src/zimg/depth/arm/dither_neon.cpp:9:
./src/zimg/common/arm/neon_util.h:80:54: error: variable or field ‘neon_store_idxlo_f16’ declared void
 static inline FORCE_INLINE void neon_store_idxlo_f16(__fp16 *dst, float16x8_t x, unsigned idx)
                                                      ^~~~~~
./src/zimg/common/arm/neon_util.h:80:54: error: ‘__fp16’ was not declared in this scope
./src/zimg/common/arm/neon_util.h:80:62: error: ‘dst’ was not declared in this scope
 static inline FORCE_INLINE void neon_store_idxlo_f16(__fp16 *dst, float16x8_t x, unsigned idx)
                                                              ^~~
./src/zimg/common/arm/neon_util.h:80:67: error: ‘float16x8_t’ was not declared in this scope
 static inline FORCE_INLINE void neon_store_idxlo_f16(__fp16 *dst, float16x8_t x, unsigned idx)
                                                                   ^~~~~~~~~~~
./src/zimg/common/arm/neon_util.h:80:67: note: suggested alternative: ‘float32x4_t’
 static inline FORCE_INLINE void neon_store_idxlo_f16(__fp16 *dst, float16x8_t x, unsigned idx)
                                                                   ^~~~~~~~~~~
                                                                   float32x4_t

I'm seeing others online able to build this package on a raspberry pi. Is anyone here familiar with any rpi model / arm proc / etc limitations that are known.
Usually google would be my friend here, but I'm getting little to no results about this. Let me know if there's more info I can provide.
/etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian

$ uname -am
Linux raspberrypi 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux

Are you using a 64-bit toolchain?

authors: jamesalbert sekrit-twc

repo: sekrit-twc/zimg


text:
Wrong link in section Preventing Events

I think there is a wrong link to a stackexchange post in the section Preventing Events, it currently points to this answer,
https://stackoverflow.com/a/26706695/2970321
however, I believe it should point to the next answer,
https://stackoverflow.com/questions/26705098/jquery-select2-prevent-selecting-in-ajax-response/26706695#36091321

Thanks!  We should probably remove the link altogether, and just put this explanation directly in the content.

makes sense.

I have been experiment with select2 for some time and using it in some projects.  I posted a few solutions to some questions I initially raised on stackoverflow.  Feel free to use these as examples if useful.

Yes, it might be worth adding a "Recipes" section to the docs for some common use cases.

authors: alexweissman aurovrata


text:
Bootrstrap modals?

Anyone have 4.0 working in Bootstrap modals?  It is probably a css issue, but seeing as how popular bootstrap is I'm sure this would apply to quite a lot of people.
The funny thing is this works in IE 11, but not the latest Firefox, Chrome, or Safari - https://jsfiddle.net/u5n590cq/6/

Duplicate of https://github.com/select2/select2/issues/600, works at https://jsfiddle.net/u5n590cq/7/.


text:
I can not create a tag if the text is part of the selected tag

Example - http://codepen.io/alexpts/pen/QyOyWm (3) , select form.

I was able to reproduce this with the following codepen: http://codepen.io/anon/pen/qbVMob?editors=101

Open the dropdown
Type "some"
Hit the enter key

Note that this is only an issue when selecting the tag using the keyboard, using a mouse does not cause any issues.
After stripping this down it's happening because you are hiding any selected elements, but Select2 is still trying to highlight them. Select2 will only select a result on "enter" if it is highlighted. If there are no highlighted results (or the highlighted result has already been selected), nothing will happen.

Is there a workaround for this? Maybe disable the dropdown completely?

authors: alexpts andenq kevin-brown


text:
Select2 dropdown list 'highlight' on iOS

Hello.
Apologies if this is an existing topic. I searched and could not find anything.
When clicking (or touching) my selection from a select2 dropdown on iOS, the focus feels as if it's not directly on the option I am touching, but on the entire dropdown. It makes for an odd experience on mobile. The correct selection is made, but the gray 'highlight' is on the list.
Please see image.
Your feedback is much appreciated.

+1 in this, I would like this to be addressed, as this disqualifies the use of select2 on iOS.

I made this in the meanwhile, it takes care of it but it's not perfect.
Just place it after your select2 initialization.
$('body').on('DOMNodeInserted','.select2-results__options',function(e) {
  $(this).css({ '-webkit-tap-highlight-color': 'rgba(0,0,0,0)', '-webkit-touch-callout': 'none'});
}).on('touchstart touchmove','.select2-results__options',function(e) {
  var ev = $.Event('mouseover');
  ev.pageX = e.originalEvent.touches[0].pageX;
  ev.pageY = e.originalEvent.touches[0].pageY;
  $(e.target).trigger(ev);
});

Any update on this ticket? I am also facing same type of issue in IPAD Landscape mode...first one overlay list is coming and when I click on that it removed and shows exact working one...and after clicking on that data is selecting...

authors: Sunbuzz niteshmittal typebrad


text:
Added support for the slovenian language

Adding support for the slovenian language
This pull request includes a

[ ] Bug fix
[ ] New feature
[x] Translation

The following changes were made: /
If this is related to an existing ticket, include a link to it as well.

Closing this as Slovene/Slovenian is already supported (see https://github.com/select2/select2/commit/8e6422c570a87da8d89c45daf0d253695a943c84).  Also, be aware that the language code for Slovenian is sl, not si.

authors: ProExpertProg alexweissman


text:
Synonym Feature Discovery

Discovery for best way to store and retrieve
Questions:

one key per synonym vs. large json map?
how to store vector position efficiently?
at what point should the check for synonym happen when vectorizing a corpus?

one key per synonym vs. large json map?

One per key is fine, but one request per lookup is far too slow (1000 lookups around 1s). We need to watch (also works for prefixes) changes and keep an in-memory lookup copy handy at all times.

how to store vector position efficiently?

simple json is fine. We need both the position as well as the original concept (and weight), so we can recalculate in the future

at what point should the check for synonym happen when vectorizing a corpus?

immediately before checking. This could possibly be aided by a wrapper of the existing contextionary type
Closing as the discovery is complete.

repo: semi-technologies/contextionary


text:
Use distcc instead of gcc - duh!

Can't believe I didn't think of this sooner - distcc will be a legend when it comes to compilation speed. Will be done by 0.0.4a.

To evolve upon this, there should be a startup script that sets CC as well as some other variables. This may exist already though!

Update: after 12 seconds of thought, this does exist - /etc/profile. Good excuse to complete #13 too!

Update: after 12 seconds of thought, this is a good excuse to fix #14 too!

Fixed at 50e1471. Will be out by 0.0.4a.

repo: semissioncontrol/semcOS


text:
Issue on running this program

Hi, I'm new in flutter and would doing for some demo on nfc however once I download for the code for running but it's show some error as below and I have no idea how to fix it... Please providing some clue and thank you...

after finished for this configuration and run the program it's showing error as below

and I looking through stack overflow found the solution as this https://stackoverflow.com/questions/65516334/flutter-error-invalid-podfile-file-no-implicit-conversion-of-nil-into-string
however it also could not work as well

@MatthewGoh0225 what is the output of flutter doctor?


text:
feat: Added pending & failed message

Changes

Added pending and failed messages

ticket: AC-2609
Sign in to Sendbird.webm
Additional Notes

Tested with localCacheEnabled false, and message input disabled false

Checklist
Before requesting a code review, please check the following:

[x] [Required] CI has passed all checks.
[x] [Required] A self-review has been conducted to ensure there are no minor mistakes.
[x] [Required] Unnecessary comments/debugging code have been removed.
[x] [Required] All requirements specified in the ticket have been accurately implemented.
[ ] Ensure the ticket has been updated with the sprint, status, and story points.

깃헙이 이상하네요..

repo: sendbird/chat-ai-widget


text:
release: 3.9.1

[v3.9.1] (Dec 8 2023)
Features:

Improved image loading speed by implementing lazy load with IntersectionObserver
Replaced lamejs binary

Fixes:

Fixed a bug where the admin message disappears when sending a message
Recognized the hash property in the URL
Fixed a bug where resending MFM fails in the thread
Group channel user left or banned event should not be ignored
Removed left 0px from <Avatar /> component to fix ruined align
Applied StringSet for the file upload limit notification

Improvements:

Divided <EditUserProfileUI /> into Modal and View parts
Added a message prop to <ReactionItem /> component
Improved the storybook of <EmojiReactions />

[Creating Ticket] 🔖 Done https://sendbird.atlassian.net/browse/SDKRLSD-1066

authors: AhyoungRyu sendbird-sdk-deployment

repo: sendbird/sendbird-uikit-react


text:
Add a glossary entry for "unknown user"

Unknown User - A hard bounce error indicating the email address (user) does not exist at the organization or domain.
Link to Delivery Metrics, Link to Bounces, Link to Subscriber List Management
Link to Deliverability Center

@ksigler7 any clue on how to tackle this? link to page?

@kaysiz good question! Here is an example of another glossary page that was recently added that you could use as a template for what to do here: https://github.com/sendgrid/docs/pull/3083/files

@ksigler7 .. could you please lemme know what all contents should be added in the glossary entry ?..

@ng29 Ah, I'm sorry I didn't claim this issue before, I just started work yesterday and forgot to make a comment here. Hopefully, you hadn't replicated the work yet.

repo: sendgrid/docs


text:
Update blocks.md

Adding periods at the end of sentences within the table for consistency's sake. Period.
Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @joanna-roberts,Thanks again for the PR! It's HACKTOBERFEST! We want to show our appreciation by sending                                              you some special Hacktoberfest swag. If you have not already, could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX

authors: joanna-roberts thinkingserious


text:
Merging old-develop into old-master 1.13.2020 - SMTP mail settings deprecation notice

Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @Whatthefoxsays,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX

authors: Whatthefoxsays thinkingserious


text:
Update documenation for retrieving a list of all templates (dynamic & legacy)

Issue Summary
Please update the USAGE.md and corresponding \example with the call to list all templates.
This is the API call required: GET https://api.sendgrid.com/v3/templates?generations=legacy,dynamic
Acceptance Criteria

The Usage.md file demonstrates how to use this API call to retrieve all templates: GET https://api.sendgrid.com/v3/templates?generations=legacy,dynamic
The corresponding /example file demonstrates how to use this API call to retrieve all templates: GET https://api.sendgrid.com/v3/templates?generations=legacy,dynamic

Let me take this one too.

Thank you @renshuki! Awesome!

authors: renshuki thinkingserious

repo: sendgrid/sendgrid-php


text:
Replace green location markers

Replace the green with red ones. People are thinking it means "running" and "not running".

high priority!

delete than the "legend" in the info window...

@chk1 kannst du das ggf fix machen? Und wenn du schon am filter bist, kannst du mit der aktualitätsanzeige starten, sodass wir bald sehen könnten, welche senseboxen gerade live sind, noch vor einer woche live waren usw...  das wollten wir ja mit so nem time-slider machen. das wäre cool bald zu haben, weil wir bei den präsentationen immer wild aktive boxen suchen müssen ;)

Ja das wird das erste sein was ich einbaue, vorher würde ich noch ein paar strukturelle Sachen umstellen wegen Übersichtlichkeit im Code und so (ui-router Branch)

Cool
Am 20.02.2016 4:02 vorm. schrieb "Christoph Kisfeld" <
notifications@github.com>:

Ja das wird das erste sein was ich einbaue, vorher würde ich noch ein paar
strukturelle Sachen umstellen wegen Übersichtlichkeit im Code und so
(ui-router Branch)
—
Reply to this email directly or view it on GitHub
https://github.com/sensebox/OpenSenseMap/issues/58#issuecomment-186494451
.

Active boxes (green) should not be covered by inactive boxes (grey)

authors: chk1 janwirwahn robarto

repo: sensebox/OpenSenseMap


text:
add support for PDNS 4.3 and refactor data type and support case

Using a pattern for version checking is shorter than listing every
version. A case with a default fail is not needed. A regsubst is more
efficient and supported versions are already checked in init.pp

Very nice! Thanks for the contribution!

repo: sensson/puppet-powerdns


text:
add paginated_get utils method

Description
Adds a utility method implementing paginated HTTP GET for Sensu API requests.
Motivation and Context
Users with a large number of clients, events and/or check results have reported timeouts and other errors when executing checks and handlers which request a complete data set from the Sensu API.
As of Sensu 1.4 the API supports pagination for HTTP GET on a number of endpoints.
How Has This Been Tested?
Same code has been implemented in an experimental branch of sensu-plugins-sensu, where pagination has been implemented in the check-stale-results.rb and handler-purge-stale-results.rb plugins.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have updated the Changelog following the conventions laid out on Keep A Changelog

Known Caveats
I've added this method to the Sensu::Plugin::Utils module, because I think this method should be available to both check and handler plugins. That said, the method does call the api_request method which is part of Sensu::Plugin::Handler. Not 100% sure if this works in practice.
Possibly out of scope for this change, but can api_request and related methods be made available to Sensu::Plugin::Check::CLI without a breaking change to the library?

released: https://rubygems.org/gems/sensu-plugin/versions/2.6.0

authors: cwjohnston majormoses

repo: sensu-plugins/sensu-plugin


text:
Entity resource

Pull Request Checklist
Is this in reference to an existing issue?
It is not - we're experimenting with it for provisioning sensu-go internally, and it was missing a few resources, so I took the liberty to add them.
General

[X] Update Changelog following the conventions laid out here

[X] Update README with any necessary configuration snippets

[X] Cookstyle (rubocop) passes

[X] Foodcritic passes

[X] Rspec (unit tests) passes

[X] Inspec (integration tests) passes

New Features

[X] Added a Testing Artifact as either an automated test or a manual artifact on the PR.

[X] Adedd documentation for it to the README.md

Purpose
Known Compatibility Issues

@majormoses I think I've addressed all your comments, lmk if there's anything else!

Will review this evening

I noticed you added the resources to the test cookbook recipe but did not add tests for them, could you add those?

released: https://github.com/sensu/sensu-go-chef/tree/0.0.3
We are not yet ready for supermarket releases

repo: sensu/sensu-go-chef


text:
prep release for 0.2.0

Please see the CHANGELOG.md for a more complete list of changes.

I have removed the appveyor config and deleted it from the UI, we can ignore the appveyor failures.

@majormoses what about including #76 too? I’m fine either way

@majormoses what about including #76 too? I’m fine either way

Ah ya I thought you were gonna merge and write a changelog entry for it. I just merged it and will rebase to include it here.

authors: majormoses webframp


text:
Adv notebooks

Notebooks for AgriDataValue project.

This is 6k lines. What should i focus on

This is 6k lines. What should i focus on

Anything *.ipynb and *.py:
./Burned-up_area/burned-up_area_large_area_prediction.ipynb
./Burned-up_area/utils.py
./Burned-up_area/burned-up_area_modelling.ipynb
./Air pollution example/no2_concentrations.ipynb
./eo-data.ipynb
./eo-derived-data.ipynb
./indicators.ipynb

Did a quick take, and it seems fine

authors: batic zigaLuksic

repo: sentinel-hub/eo-learn-examples


text:
EXC_BAD_ACCESS with job execution

With a simple change to test_jobs.c, execution on macOS fails with an EXC_BAD_ACCESS in make_fcontext. The issue can be triggered by dispatching and waiting on multiple separate jobs within an existing job; adding
job = sx_job_dispatch(g_ctx, jobs, 1, 0);
sx_job_wait_and_del(g_ctx, job);

after the existing dispatch in job_fib_fn is sufficient.

My suspicion is this is because cur_job is set in the thread-local storage within a job's fiber_fn at the start of execution, but may be overwritten when dispatching another job.

Storing the source selector fibre on the job and setting it in the TLS before every context switch seems a workable solution: https://github.com/troughton/sx/commit/9cace4b99318da542d4894a2c309bcd0e1554df7

Sorry for late answer, I was busy with something else and didn't have the time to investigate this.
Ouch. yes you are right. I never actually tested it with this scenario and obviously this thing is not battle-tested.
could you do a PR on this ?
thanks

authors: septag troughton

repo: septag/sx


text:
When I Click on the button  Creare credential，there are nothing .

I  use the IDEA developing the  cloudbreak-application ,and  the Profile  include  PUBLIC_IP and
CB_SCHEMA_SCRIPTS_LOCATION.
,

I followed the instruction in the documentation. http://sequenceiq.com/cloudbreak-docs/latest/development/

Hi @qigengwei ,
Sorry for the late answer, i hope it isn't too late. I have no idea what occurred this issue but i guess not related to environment setup. Maybe browser's net monitor says something (e.g. missing resources). If you want to develop web interface too please extend your Profile file with export ULUWATU_VOLUME_HOST=[path-of-cloudbreak-source]/cloudbreak/web and deployer replaces the original interface to your local one.
Please let me know if works or not (or maybe it already gone).
Cheers,

authors: mhmxs qigengwei

repo: sequenceiq/cloudbreak


text:
'arithmetic operation overflowed' when reading "-0" as JSON

Running this program:
extern crate serde_json;
fn main() {
    serde_json::from_str::<serde_json::Value>("-0").unwrap();
}

causes:
thread '<main>' panicked at 'arithmetic operation overflowed', [...]/.cargo/registry/src/github.com-88ac128001ac3a9a/serde_json-0.6.0/src/de.rs:289

whereas I expected it to run to completion successfully with no output.

See #35

This was closed in #35.

authors: erickt nixpulvis tonyg

repo: serde-rs/json


text:
Preserve '.0' when Displaying Number

Tiny followup to #918.
let number: serde_json::Number = serde_json::from_str("1.0").unwrap();
println!("{}", number);

Previously: 1
Now: 1.0

shouldn't this be a more significant version bump than patch? it has broken a unit test of mine. nothing extreme but was not expecting to see this behavior change

rustaceans are afraid of MAJOR semvar version changes. it's like kryptonite to them.

Could this be configurable? I have a slightly unusual use case where I need to represent ones' complement integer, i.e., signed integers with a negative zero. I'm using f64::serialize but that means integers are displayed as 1.0 instead of 1 which looks weird in this context.

@alteous it looks like you could configure some things through the Formatter trait

@iitalics that looks promising, thanks! I'll give a try.

authors: Directory alteous dtolnay iitalics


text:
MySQL/MariaDB column geometry

hi,
You'll find the 'geometry' type and the stock of the coordinates of gps. When i try to Dump or import the  database the fields values became wrong. Example: value became 2.2359537552925256e63 instead of 50.12345. Because of "e" in the value's field.
Have an idea for this problem ?
Does DbEaver handle geometry fields?
Thanks for help

Please post sample of DDL/data insert.

Hello,
DDL :
CREATE TABLEadresse  (  	id                      	int(11) UNSIGNED AUTO_INCREMENT NOT NULL, 	lieu                    	varchar(255) NULL, 	rue                     	varchar(255) NOT NULL, 	num                     	varchar(15) NULL, 	boite                   	varchar(10) NULL, 	complement              	varchar(255) NULL, 	cp                      	varchar(15) NULL, 	localite                	varchar(255) NULL, 	pays                    	char(2) NULL DEFAULT 'BE', 	tel                     	bigint(15) UNSIGNED NULL, 	mobile                  	bigint(15) UNSIGNED NULL, 	fax                     	bigint(15) UNSIGNED NULL, 	coord                   	geometry NULL, 	adresseClusterId        	int(11) UNSIGNED NULL, 	mobiliteEnumerationLabel	varchar(255) NULL, 	nombreOrdinateurs       	int(11) UNSIGNED NULL, 	wifiGratuit             	tinyint(1) NULL, 	horaire                 	varchar(500) NULL, 	prive                   	tinyint(1) NOT NULL DEFAULT '0', 	placeId                 	varchar(300) NULL, 	reformatted             	tinyint(1) NOT NULL DEFAULT '0', 	dateCreation            	datetime NOT NULL DEFAULT '0000-00-00 00:00:00', 	dateModification        	timestamp NOT NULL, 	ownerContactId          	int(11) UNSIGNED NULL, 	ownerGroupId            	int(11) UNSIGNED NULL, 	_OLDId                  	varchar(255) NULL, 	pendingDelete           	tinyint(1) NOT NULL DEFAULT '0', 	PRIMARY KEY(id`)
);
`
Insert :
INSERT INTOadresseVALUES (13, 'Agence du Numérique (AdN)', 'Avenue du Prince de Liège', '133', NULL, 'AWT', '5100', 'Jambes', 'BE', NULL, NULL, NULL, GeomFromText('POINT(50.4640335 4.8875213)'), NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, '2014-10-30 12:43:52', '2015-6-4 15:43:00', NULL, NULL, '446', 0);
Value 'coord' for DbEaver
         ³_!se;I@} 8bó @
THX.

We'll support it with GeoTools library: http://docs.geotools.org/stable/userguide/library/jts/geometry.html

Geometry values read/write support will be added in 4.3.5

authors: maitrepylos serge-rider

repo: serge-rider/dbeaver


text:
[feature] CSV import with creating table

Sometimes I have a table with data (csv/xls) that I need to load to DB and make some queries with existing tables.
It would be great to import csv file as one operation using wizard.
The wizard would request table name, read column names from the first line of the file and allow to change their types, allow to append primary key and finally create the table filled with data.

Duplicate of #130
We going to add this feature in 4.2.6

@serge-rider I'm using 7.0 and can't see this feature anywhere — neither in docs, nor in searching the menus. Has it been implemented and/or documented?

Also @serge-rider I don't see this issue as being a duplicate of #130 at all.
Issue #130 is about adding a flat-file (like csv) option when importing into an existing table.
This present issue (#2415) is about creating a table while importing a flat-file.

You can do it by creating a CSV data source and exporting data from the csv table to a new database table.
Otherwise I suggest you create a new issue, commenting on closed ones can be easily overlooked by the developers.

authors: JivanRoquet offstate p91paul serge-rider