ditto variables not working

Hi we tried using interpolation variables for ditto components but it doesn't seem to be working. Any suggestion on what could be the issue?
https://github.com/dittowords/ditto-react#interpolation
we're using "ditto-react": "^1.2.0",
// examples of attempted use

const text = useDittoSingleText({
    textId: 'text_legal_stuff_item_4',
    variables: {
      PDS_LINK_CURRENT: 'testing',
      pds_link_current: 'what we get',
      pdsLinkCurrent: 'other',
    },
  });

 <DittoText
    textId="text_legal_stuff_item_4"
    variables={{
      PDS_LINK_CURRENT: 'testing',
      pds_link_current: 'what we get',
      pdsLinkCurrent: 'other',
    }}
  />

// text doesn't interpolate and will print out the string below
({{PDS_LINK_CURRENT}})  {{pds_link_current}} {{pdsLinkCurrent}} for information

We tried running the local examples but text doesn't seem to show up either (see below)
thanks

Hi @nethan-freely, thanks for opening this issue! It appears that this could be a case of unclear documentation on our part.
Variable interpolation in ditto-react only works with variables that have been created inside of Ditto; it appears from looking at your project that while you have the interpolation placeholders in your text, there are not variables associated with them. This help guide should be helpful in illustrating how Ditto variables can be created and inserted into your text!
Can you create / confirm you've created Ditto variables for the text items that you're having issues with, and then re-run the ditto-cli pull command? This should solve your issue. If the issue persists, sharing the contents of your ditto/config.yml file will help us further debug!

We tried running the local examples but text doesn't seem to show up either (see below)

If you've linked the Ditto CLI to your own workspace and overwritten the ditto output files, it makes sense that text wouldn't show up in the local examples, because the component and text ids that the local examples rely on would no longer exist.

I've confirmed that things appear to be working on my end as follows:
Text item in Ditto

ditto/config.yml
projects:
  - name: My Project
    id: 6345ae6912d03cb4718e2a3a

Application code
import DittoProvider, { useDittoSingleText } from "ditto-react";
import source from "./ditto";

function _App() {
  return (
    <DittoProvider source={source} projectId="project_6345ae6912d03cb4718e2a3a">
      <App />
    </DittoProvider>
  );
}

function App() {
  const text = useDittoSingleText({
    textId: "my_text_id",
    variables: {
      username: "Jordin",
    },
  });

  return
{text}
;
}

Result

@nethan-freely I made some small updates to hopefully clarify this issue in the README under the Variable Interpolation section. I'm going to close this issue as resolved, but please feel free to reopen or create another if you run into further problems :)

Thanks, @azjgard. We tried it out and it worked with variables created in Ditto :)


Use Typescript 2.5.3

I have a typescript project that uses the latest version of typescript(2.5.3)
It would be great if typedoc could have a 'peer-dependency' of typescript.
If not, please update typescript dependency to 2.5.3 instead of 2.4.1
Thanks.

tags: enhancement

Hello @avikalpa, because TypeDoc is tightly coupled to specific TypeScript versions, using peer-dependencies is not a viable option. It would be good to update though. PR #573 is open to address this.

@aciccarello

TypeDoc is tightly coupled to specific TypeScript versions

Are you sure that’s completely true?
I used installed TypeDoc 0.9.0, removed ./node_modules/typedoc/node_modules/typescript and it worked perfectly:
➔ ./node_modules/.bin/typedoc --tsconfig . --out build/tsdoc js/main/src

Using TypeScript 2.6.2 from /path/to/node_modules/typescript/lib
Rendering [========================================] 100%

Documentation generated at /path/to/build/tsdoc

Maybe some things don’t work but if it’s good enough for my use-case, why not let me use it this way? You can still require specific versions of typescript with peerDependencies and npm will warn us if the versions are seemingly incompatible…


Nginx w/ PHP-FPM 7.1 FastCGI w/ a Unix Socket hangs when fastcgi_buffering: on (default)

Windows build number:  Microsoft Windows [Version 10.0.17134.285]

What I'm doing and what's happening:
Install PHP 7.1, follow normal Ubuntu guide on doing it.
Create a test index.php with the contents:

<?php
phpinfo();

Visit localhost:80 or localhost:443

What's wrong / what should be happening instead:
Page loads half-way and hangs.

Current hack / workaround

Turn off fastcgi_buffering as per below:
location ~ \.php$ {
        proxy_set_header X-Forwarded-Proto $scheme;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_buffering off; # This must be here for WSL as of 11/28/2018
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PHP_VALUE "upload_max_filesize = 20M \n post_max_size=21M";
        include /etc/nginx/fastcgi.conf;
}

Not sure exactly what the issue is but it's probably something to do with how WSL handles unix sockets.

@therealkenc Do you need anything more from me?
This should be reproducible from a clean install + following the guide I linked.

CLI repro steps and a gist of the threaded strace. The strace on Real Linux strace helps too if you can get one. Worth giving RS5 aka 1809 aka 17763 a try as well.

Well luckily I encountered this while writing our dev on boarding guide for Windows so I can copy/paste the relevant parts.
Setup Ubuntu Environment in Windows

Install Windows Subsystem for Linux

https://docs.microsoft.com/en-us/windows/wsl/install-win10

Install Ubuntu from the Windows Store or Install Manually

https://docs.microsoft.com/en-us/windows/wsl/install-manual

Continue normal Ubuntu setup instructions

Install PHP for Ubuntu

sudo apt install software-properties-common - gets the add-apt-repository command
sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/nginx
sudo apt update - Updates your list of available packages
 sudo apt install php7.1 php7.1-bcmath php7.1-bz2 php7.1-cli php7.1-curl php7.1-dba php7.1-fpm php7.1-gd php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-readline php7.1-soap php7.1-xml php7.1-zip php-gnupg php-pear php-memcached php-msgpack php-igbinary - Install PHP 7.1 and all extensions we absolutely need

At this point php -v should work from terminal and the ubuntu service php7.1-fpm should be registered and started. It should already be listening on /run/php/php7.1-fpm.sock.
Configure php-fpm

sudo nano /etc/php/7.1/fpm/php.ini
Change this value and save the file.
cgi.fix_pathinfo=0
sudo service php7.1-fpm restart

Install Nginx

sudo apt install nginx
sudo service nginx start

Edit the default site:

sudo nano /etc/nginx/sites-available/default

In the server bracket add this:
server {
        .... other settings ...
    location ~ \.php$ {
            proxy_set_header X-Forwarded-Proto $scheme;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param PHP_VALUE "upload_max_filesize = 20M \n post_max_size=21M";
            include /etc/nginx/fastcgi.conf;
    }
}

sudo service nginx restart

strace
To gather this strace I lowered the nginx workers to 1 and attached to that one. Then I visited /info.php which was a page containing the phpinfo(); standard output.
gettimeofday({1543459478, 202784}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808013, 705916000}) = 0
accept4(10, {sa_family=AF_INET, sin_port=htons(55093), sin_addr=inet_addr("<IP_ADDRESS>")}, [16], SOCK_NONBLOCK) = 3
epoll_ctl(12, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLRDHUP|EPOLLET, {u32=2971141072, u64=140667445052368}}) = 0
epoll_wait(12, [{EPOLLIN, {u32=2971141072, u64=140667445052368}}], 512, 60000) = 1
gettimeofday({1543459478, 204963}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808013, 708132000}) = 0
recvfrom(3, "\26", 1, MSG_PEEK, NULL, NULL) = 1
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
read(3, "\26\3\1\0021\1\0\2-\3\3\227\201\317\6\263_\265\7\244=\2207~\246c\3736\316\234#\361"..., 16709) = 566
time(NULL)                              =<PHONE_NUMBER>
time(NULL)                              =<PHONE_NUMBER>
time(NULL)                              =<PHONE_NUMBER>
time(NULL)                              =<PHONE_NUMBER>
write(3, "\26\3\3\0d\2\0\0`\3\3h?\274\177K\324R\334s\226\254\37\206\337\207\353kX(\250+"..., 156) = 156
read(3, 0x7fffbaae0363, 16709)          = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(12, [{EPOLLIN, {u32=2971141072, u64=140667445052368}}], 512, 59997) = 1
gettimeofday({1543459478, 207112}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808013, 710144000}) = 0
read(3, "\24\3\3\0\1\1\26\3\3\0(\0\0\0\0\0\0\0\0\261(\333\210`\316\234\363\262Gw*\34"..., 16709) = 51
read(3, 0x7fffbaadae03, 16709)          = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(12, [{EPOLLIN, {u32=2971141072, u64=140667445052368}}], 512, 59995) = 1
gettimeofday({1543459478, 211616}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808013, 714673000}) = 0
read(3, "\27\3\3\5[\0\0\0\0\0\0\0\1\263\312bso\222\264\n\3068ZJ\267QC\16\302\253\1"..., 16709) = 1376
read(3, 0x7fffbaadae03, 16709)          = -1 EAGAIN (Resource temporarily unavailable)
epoll_ctl(12, EPOLL_CTL_MOD, 3, {EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=2971141072, u64=140667445052368}}) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("<IP_ADDRESS>")}, [16]) = 0
socket(PF_LOCAL, SOCK_STREAM, 0)        = 14
ioctl(14, FIONBIO, [1])                 = 0
epoll_ctl(12, EPOLL_CTL_ADD, 14, {EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=2971141313, u64=140667445052609}}) = 0
connect(14, {sa_family=AF_LOCAL, sun_path="/var/run/php/php7.1-fpm.sock"}, 110) = 0
getsockopt(14, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
writev(14, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\t.\2\0\f\0QUERY_"..., 2392}], 1) = 2392
epoll_wait(12, [{EPOLLOUT, {u32=2971141072, u64=140667445052368}}, {EPOLLOUT, {u32=2971141313, u64=140667445052609}}], 512, 60000) = 2
gettimeofday({1543459478, 213736}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808013, 716770000}) = 0
epoll_wait(12, [{EPOLLIN, {u32=2971141313, u64=140667445052609}}], 512, 59998) = 1
gettimeofday({1543459478, 216843}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808013, 719885000}) = 0
recvfrom(14, "\1\6\0\1\0*\6\0Content-type: text/html;"..., 4096, 0, NULL, NULL) = 4096
readv(14, [{"v+Inu8UdKnmkEUHQK93EjEZ4Rbkifq8J"..., 4096}], 1) = 4096
readv(14, [{"onf.d/20-ftp.ini,\n/etc/php/7.1/f"..., 4096}], 1) = 4096
readv(14, [{"WZvEK7Dnf6WUljTT5TS7d0KwezkJShdW"..., 4096}], 1) = 4096
readv(14, [{"cupaIoEz6EmaC3C+0Ro6Wgp4eb2tpPJq"..., 4096}], 1) = 4096
readv(14, [{"fault_charset	"..., 4096}], 1) = 4096
readv(14, [{" class=\"v\">no value	<"..., 4096}], 1) = 4096
readv(14, [{"=\"e\">zend.assertions	Directive	"..., 4096}], 1) = 4096
mmap(NULL, 274432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fefb1130000
readv(14, [{"
\n
WebP Sup"..., 4096}, {"s=\"e\">Multibyte regex (oniguruma"..., 4096}, {"r>\n
memcached.s"..., 4096}, {"td class=\"v\">Off	<td class=\""..., 4096}, {"ormal 	329 </t"..., 4096}, {"/td>1
\n<"..., 4096}, {"ass=\"e\">com_table_dump 	<td "..., 4096}, {"09 Tim Kientzle.
\n</tab"..., 4096}, {"ogress.name	PH"..., 4096}], 9) = 36864
write(3, "\27\3\3@\30Xwi\24\231\251\210Y\350\372\335\236!\217w\314\3072\323\316\",R\335\330)l"..., 16413) = 16413
readv(14, [{"\">0	0
xdebug.dump_unde"..., 4096}, {"s	0	opcache.file_update_protect"..., 4096}, {"434.1543280177434.1
\n<t"..., 4096}, {"_SERVER['HTTPS']
\n
Cale"..., 4096}, {"ory Beaver, Marcus Boerger 	"..., 4096}, {">Websites and In"..., 4096}], 9) = 33976
epoll_wait(12, [{EPOLLRDHUP, {u32=2971141313, u64=140667445052609}}], 512, 59995) = 1
gettimeofday({1543459478, 221596}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808013, 724646000}) = 0
epoll_wait(12, [{EPOLLIN, {u32=2971140592, u64=140667445051888}}], 512, 59990) = 1
gettimeofday({1543459479, 599371}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808015, 102433000}) = 0
accept4(10, {sa_family=AF_INET, sin_port=htons(55094), sin_addr=inet_addr("<IP_ADDRESS>")}, [16], SOCK_NONBLOCK) = 15
epoll_ctl(12, EPOLL_CTL_ADD, 15, {EPOLLIN|EPOLLRDHUP|EPOLLET, {u32=2971141552, u64=140667445052848}}) = 0
epoll_wait(12, [{EPOLLIN|EPOLLRDHUP, {u32=2971141552, u64=140667445052848}}], 512, 58612) = 1
gettimeofday({1543459479, 600182}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808015, 103214000}) = 0
recvfrom(15, "", 1, MSG_PEEK, NULL, NULL) = 0
close(15)                               = 0
epoll_wait(12, [], 512, 58611)          = 0
gettimeofday({1543459538, 212810}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC_COARSE, {808073, 715869000}) = 0
gettid()                                = 12638
write(7, "2018/11/28 21:45:38 [error] 1263"..., 284) = 284
close(14)                               = 0
write(3, "\27\3\3.\352Xwi\24\231\251\210Z\244\306\21\207\241RS\216d\332\202\232\23\241\312\177\324\336\322"..., 12015) = 12015
write(4, "<IP_ADDRESS> - - [28/Nov/2018:21:45"..., 163) = 163
munmap(0x7fefb1130000, 274432)          = 0
write(3, "\25\3\3\0\32Xwi\24\231\251\210[\5\324\326\373=\265,Q>\353?\33*\245\343\335}!", 31) = 31
close(3)                                = 0
epoll_wait(12,  <detached ...>

During this time
/var/log/nginx/error.log recorded this:
2018/11/28 21:45:38 [error] 12638#12638: *4 upstream timed out (110: Connection timed out) while reading upstream, client: <IP_ADDRESS>, server: localhost, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host: "localhost"

epoll_wait(12,  <detached ...>`

Great, thanks. I take it that last epoll_wait() simply never returns. There have been fixes to somewhat similar issues in 1809, although I can't pin your sequence on an exact dupe. See #3100 #2949 #2846 et al.

same issue here

This is still an issue on 1903 (Build 18362.113)

This is still an issue on 1903 (Build 18363.535)
workaround:
fastcgi_buffering off;

Versions: 1909 (OS Build 18363.778), nginx/1.18.0, PHP 7.4.5 as FPM.
Setup and Config similar to @hparadiz
Also with fastcgi_buffering off; I get upstream timed out (110: Connection timed out) while reading upstream on slightly "larger" pages which is pretty big hazzle for development,
Testcode:
<?php
$fill = 2000; // works easily on Prod Server (Bare Metal)
$fill = 200; // crashing in WSL on my machine
$fill = 150; // working in WSL on my machine

// 1000 chars of Lorem
$lorem = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. N';

$ar = array_fill(0, $fill, $lorem);

foreach (array_keys($ar) as $key) {
    $val =& $ar[$key];
    echo( $val );
}
unset ($val, $key);

Ideas anyone?

@showmetheworld: the solution to your problem is in the documentation:
http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_buffering

When buffering is disabled, the response is passed to a client synchronously, immediately as it is received. nginx will not try to read the whole response from the FastCGI server. The maximum size of the data that nginx can receive from the server at a time is set by the fastcgi_buffer_size directive.

So you should probably increase your fastcgi_buffer_size

So you should probably increase your fastcgi_buffer_size

Thanks, but doesn't work, even with absurd high values.
It's always results in upstream timed out (110: Connection timed out) while reading upstream, even faster with fastcgi_buffering on.
As OP mentioned, it could be a problem how WSL handles unix sockets...

I had the same issue, when I print out a page, only the first part of the page is actually printed and the browser remains in loading state until nginx reaches timeout (I think).
I had this problem on a fresh installation of Ubuntu 20.04 on wsl 1 and PHP 7.4.
Based on Remi-Coulom advice and nginx documentation, I tried to increase fastcgi_buffer_size and fastcgi_buffers in "vhost" location PHP block and it seems to solve my problem.
`location ~ .php$ {
fastcgi_buffer_size 64K;
fastcgi_buffers 8 64K;
#fastcgi_buffering off;

include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;

}`
I want to report that in my case fastcgi_buffering off doesn't seem related to the problem.
I hope this helps.

I'm using WSL1, php 7.4 and nginx. Had the same issue. I did what @amiletti did, it didn't fix my issues...
However, adding these into my http block of nginx.conf fixed it. I don't know much about nginx/configuration, but it solved my issue for local dev atleast
        client_body_buffer_size 1024k;
        client_header_buffer_size 1024k;
        client_max_body_size 100m;

client_body_buffer_size seemed to be the main issue, but the others are safe-guards I guess.

I'm using WSL1, php 7.4 and nginx. Had the same issue. I did what @amiletti did, it didn't fix my issues...
However, adding these into my http block of nginx.conf fixed it. I don't know much about nginx/configuration, but it solved my issue for local dev atleast
        client_body_buffer_size 1024k;
        client_header_buffer_size 1024k;
        client_max_body_size 100m;

client_body_buffer_size seemed to be the main issue, but the others are safe-guards I guess.

It seems wrong.. but it works :P
        fastcgi_buffer_size 2M;
        fastcgi_buffers 8 2M;

Still had issues in with the following config:
WSL1 / Debinan/ PHP FPM 7.3/ NGINX, when using a site root linked to the /mnt/c windows mount point.
The virtual windows mounts have some performance (and i guess) other issues.
This works:
/etc/nginx/nginx.conf
Add "fastcgi_buffering off;" to http section
/etc/php/7.3/fpm/pool.d/ww.conf
pm.max_children = 30
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 10
/etc/php/7.3/mods-available/opcache.ini
Add "opcache.enable=0"
Opcache does not play well with the WSL mounts. Maybe this can be tuned so that a disable is not needed.

It seems wrong.. but it works :P
fastcgi_buffering off;

fastcgi_buffer_size 2M;
fastcgi_buffers 8 2M;

Strange although fastcgi_buffering off, fastcgi_buffer_size and fastcgi_buffers still affect the result. If fastcgi_buffering is on, even nothing will be output with fastcgi_buffer_size 2M +fastcgi_buffers 8 2M. (I'm using WSL + PHP 7.4 + Windows 11 beta)

I'm using WSL1, php 7.4 and nginx. Had the same issue. I did what @amiletti did, it didn't fix my issues...
However, adding these into my http block of nginx.conf fixed it. I don't know much about nginx/configuration, but it solved my issue for local dev atleast
        client_body_buffer_size 1024k;
        client_header_buffer_size 1024k;
        client_max_body_size 100m;

client_body_buffer_size seemed to be the main issue, but the others are safe-guards I guess.

its work

WSL with:
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal

nginx version: nginx/1.18.0 (Ubuntu)

PHP 8.1.5 (cli) (built: Apr 21 2022 10:14:45) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.5, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.5, Copyright (c), by Zend Technologies

PHP 8.1.5 (fpm-fcgi) (built: Apr 21 2022 10:14:45)
Copyright (c) The PHP Group
Zend Engine v4.1.5, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.5, Copyright (c), by Zend Technologies

same error on 2022/05/22.
work around with nginx config:
        fastcgi_buffering off;
        proxy_buffering off;


Feature request: Allow SP configurations to load from database models.

Can we please use models to load service providers configurations SAML_IDP_SPCONFIG from models which will make them dynamic?
we can save the xml metadata directly in the database instead of files.

Done here:
https://github.com/UniversitaDellaCalabria/uniAuth
metadata and sp can be configured through Admin UI
uniAuth is a djangosaml2idp fork

Wow! Thanks a lot for this.

please put a star ;)

@mhindery would you be interested in cherry-picking any of these features to this library?

uniAuth is at this moment a quite extended project, I don't think that cherry-picking could be adopted.
A lot of commits made uniAuth different from djangosaml2idp in its core.
As you can see uniAuth come like a standalone and quite monolithic project but we could think to decouple from this a standalone app (uniauth core) and create a brand new project or a new main release of djangosaml2idp.
uniAuth have some important standards, like full forceauth support, allowcreate and an automatic policy system that releases the only the attributes requested from the SP. They should be defined in sp metadata.
It also have some additional features.
I included @mhindery in the apache2 license and thanks to @askvortsov1 in the documentation.
I need some stability and fast response time in the uniauth development.
If you think that we could do something together I'm quite opened to any purposes of yours.

@askvortsov1 which specific features would you be interested in having in djangosaml2idp (besides the loading of config via models instead of settings / on-disk files)?

woudn't it be better to put them all in a new milestone?
nameid format could be another I think

Guys, this gentleman has implemented the model based SP configuration here. Maybe we can ask him to merge his fork.

this is my approach:
https://github.com/UniversitaDellaCalabria/uniAuth/blob/master/uniauth/models.py#L45
you can even disable an SP even if you auto accept it from its metadata presence, see uniauth's DISABLE_UNSPECIFIED_SP

I've been working on this on a feature branch: https://github.com/OTA-Insight/djangosaml2idp/pull/51 The code is functional, but there are some things that need to be done still; adapt the documentation for it, and adapt the included demo setup for the database-backed setup.


IOS Volume Control 2021

Current Behavior
IOS Volume Control Doesn't Work
Expected Behavior
I know there are a couple issues on this topic already but they are from a couple years ago so I was wondering if in 2021 it is possible to control the video volume. Would it be possible to control by somehow exposing the default html video element controls? I had pretty much lost hope on this one because I haven't been able to find anything anywhere about controlling volume on IOS devices, but I was just messing around on reddit on r/videos and noticed that their player allows you to control the volume of the video.

This should be a iOS limitation:

On the desktop, you can set and read the volume property of an  or  element. This allows you to set the element’s audio volume relative to the computer’s current volume setting. A value of 1 plays sound at the normal level. A value of 0 silences the audio. Values between 0 and 1 attenuate the audio.
This volume adjustment can be useful, because it allows the user to mute a game, for example, while still listening to music on the computer.
On iOS devices, the audio level is always under the user’s physical control. The volume property is not settable in JavaScript. Reading the volume property always returns 1.

https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW10


Coalesce special route networks in legend

The legend added in #632 has a “Route markers” section that lists special or “bannered” route networks separately from their parent route networks. In most cases, users wouldn’t consider the special routes to belong to a separate network and would find this presentation to be redundant.

Most American print maps omit the special routes entirely, but this project’s legend is intended to inform users who are less familiar with AASHTO route designations than the average American motorist. Some maps include an unobtrusive decoder ring for the abbreviations that appear in the banners:

To power a similar table, we’d first need to determine that a network value is a special route. One clue would be the modifiers property that banneredShield() adds to a shield definition object:
https://github.com/ZeLonewolf/openstreetmap-americana/blob/820a1fe4c206c60cb32a12ea9ff83cef4be94e49/src/js/shield_defs.js#L969-L972
However, there are some tricky cases where we’ve called banneredShield() to distinguish two shields in the same region that otherwise look identical because of how we’ve drastically simplified the shields.

However, there are some tricky cases where we’ve called banneredShield() to distinguish two shields in the same region that otherwise look identical because of how we’ve drastically simplified the shields.

Do you have an example? I found these, but they have black-on-white TWP-annotated and white-on-green with no annotation. It's not difficult to find two different networks' identical shields without annotation banners, but I don't know where to look for banneredShield() ones.

Yes, these are the ones I’m thinking of. They do call banneredShield().

Ah. My mistake. I was comparing US:OH:LOG:Union to US:OH:LOG:Pleasant instead of comparing it to US:OH:LOG.
So ideally, we'd want this?

Text
(For)

235
Ohio state routes
US:OH

24
Logan County routes Annotations: TWP
US:OH:LOG, US:OH:LOG:Miami, US:OH:LOG:Union

33
"Logan County routes"? "Pleasant Township"? Both?
US:OH:LOG:Pleasant

I haven't managed to get a TWP road in frame with an otherwise identical other-county road, which could look like any of these:

Text
(For)

33
Foo County routes
US:OH:FOO

TWP24
Logan County routes
US:OH:LOG:Union

Or

24
Logan County routes Annotations: TWP
US:OH:LOG:Union

Or

TWP24
Union Township routes
US:OH:LOG:Union

I did get a shot with a county road whose township matches a neighboring county's main style. 😅 Ohio, what have you done!?

Actually I meant this as an example of where we wouldn’t want to do any coalescing. The idea is that we wouldn’t insist on the creation of separate Wikidata items for US:US:Truck, US:OH:Business, etc., because we can tell that they’re the same as US:US and US:OH, respectively, with the addition of a banner on top. This gets complicated because it would result in the “Logan County routes” entry saying “Abbreviations: TWP = Union”.

That makes so much more sense. Thanks for your patience!


doctest 2.4.9: function pointer comparison does not compile any more

Description
Since version 2.4.9 function pointers seem to be compared differently. If you compile the following example, you will get the error
/usr/local/include/doctest/doctest.h:1166:49: Cannot initialize a parameter of type 'const void *' with an lvalue of type 'void (*)()'

This seems to be similar as https://github.com/doctest/doctest/issues/665#issue-1279903353
Steps to reproduce
void function() {}

DOCTEST_TEST_CASE("function pointer equality test")
{
    void (*function_pointer)() = &function;

    DOCTEST_CHECK(function_pointer == &function); // compile error
}

Extra information

doctest version: v2.4.9
Operating System: OSX
Compiler+version: Apple clang version 13.1.6 (clang-13<IP_ADDRESS>.5)

Fixed in dev!


Scons throws UnicodeDecodeError when using MSVC

Tested versions
Latest master 1fc8208
System information
Godot v4.4.dev (b2b13d46c) - Windows 10.0.19045 - Multi-window, 2 monitors - Vulkan (Mobile) - dedicated AMD Radeon RX 580 2048SP (Advanced Micro Devices, Inc.; 31.0.21916.2) - AMD Ryzen 5 3600 6-Core Processor (12 threads)
Issue description
This is a regression from pr #91069, after that any scons command with MSVC will fail with that error:
PS C:\Users\Matheus\Downloads\Godot Source> scons --clean
scons: Reading SConscript files ...
Automatically detected platform: windows
Auto-detected 12 CPU cores available for build parallelism. Using 11 cores by default. You can override it with the `-j` or `num_jobs` arguments.
Using SCons-detected MSVC version 14.3, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x87 in position 656: invalid start byte:
  File "C:\Users\Matheus\Downloads\Godot Source\SConstruct", line 643:
    cc_version = methods.get_compiler_version(env)
  File "C:\Users\Matheus\Downloads\Godot Source\methods.py", line 811:
    version = subprocess.check_output(args, encoding="utf-8").strip()
  File "C:\Users\Matheus\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 466:
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\Matheus\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 550:
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "C:\Users\Matheus\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1196:
    stdout = self.stdout.read()
  File "<frozen codecs>", line 322:

Steps to reproduce
Just try use any scons command with MSVC
Minimal reproduction project (MRP)
N/A

CC @Repiteo

What SCons and Python versions do you have?

Scons 4.7.0 and Python 3.12

scons -j12 p=windows editor=yes module_mono_enabled=yes dev_build=yes vsproj=yes
scons: Reading SConscript files ...
Using SCons-detected MSVC version 14.3, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
NOTE: Developer build, with debug optimization level and debug symbols (unless overridden).
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 654: invalid continuation byte:
  File "D:\Projects\Godot\godot4\SConstruct", line 642:
    cc_version = methods.get_compiler_version(env)
  File "D:\Projects\Godot\godot4\methods.py", line 811:
    version = subprocess.check_output(args, encoding="utf-8").strip()
  File "C:\Soft\Python\Python311\Lib\subprocess.py", line 466:
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Soft\Python\Python311\Lib\subprocess.py", line 550:
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "C:\Soft\Python\Python311\Lib\subprocess.py", line 1196:
    stdout = self.stdout.read()
  File "<frozen codecs>", line 322:

@akien-mga Unfortunately, this does not fix the issue.

Could you test #97614 ?

Cherry-picking #97618 solves the issue for me


web: card view implementation

brought in and started using elm-ui
switch the components (banner, resource list, card) into a folder with types, styles, and view
common file for colours, types, and styles

known issues or refactors:

try to figure out getting the grid layout purely in elm-ui instead of htmlAttributes (#146)
figure out a better way of dealing with colours (#147)

note: this includes switching all previous code to elm-ui
code for #84 , #98

I'd love to hear from the elm experts @pivotal-jamie-klassen and @zoetian about any inefficiencies or weird patterns I've used!


No source with the name [unnamed-mlj] and type [maloja

An issue I am running into is that spotify works fine, but maloja, listenbrainz and lastfm are not. When trying to "authenticate", I get the following message:

No source with the name [unnamed-lz] and type [listenbrainz

No source with the name [unnamed-lfm] and type [lastfm

No source with the name [unnamed-mlj] and type [maloja

I am not using any configs etc.
This is purely how I set it up:

Copy yaml
docker-up it (I use portainer)
Navigate to url + click auth on spotify, works.
Try to auth with other 3, errors above.

Using Maloja v3.1.5, and multi-scrobbler develop branch.
My docker-compose:
version: '3.7'

services:
  multi-scrobbler:
    image: foxxmd/multi-scrobbler:develop
    container_name: multi-scrobbler
    environment:
      - TZ=Cont/TZ
      - SPOTIFY_CLIENT_ID=x
      - SPOTIFY_CLIENT_SECRET=x
      - SPOTIFY_REDIRECT_URI=http://192.168.x.x:9078/callback
      - MALOJA_URL=http://192.168.x.x:9003
      - MALOJA_API_KEY=x
      - LASTFM_API_KEY=x
      - LASTFM_SECRET=x
      - LZ_TOKEN=x-x-x-x-x
      - LZ_USER=syber
      - PUID=1000
      - PGID=1000
    volumes:
      - /home/syber/multiscrobbler/config:/config
    ports:
      - 9078:9078
    restart: unless-stopped

@syberslxt please try using foxxmd/multi-scrobbler:develop docker image.
You will also need to set a redirect URL for lastfm.
You can do it using the env variable found in the config OR you can use a new env BASE_URL to set the default redirect url for both lastfm and spotify like this:
version: '3.7'

services:
  multi-scrobbler:
    image: foxxmd/multi-scrobbler:develop
    container_name: multi-scrobbler
    environment:
      - TZ=Cont/TZ
      - BASE_URL=http://192.168.x.x:9078
      - SPOTIFY_CLIENT_ID=x
      - SPOTIFY_CLIENT_SECRET=x
      - MALOJA_URL=http://192.168.x.x:9003
      - MALOJA_API_KEY=x
      - LASTFM_API_KEY=x
      - LASTFM_SECRET=x
      - LZ_TOKEN=x-x-x-x-x
      - LZ_USER=syber
      - PUID=1000
      - PGID=1000
    volumes:
      - /home/syber/multiscrobbler/config:/config
    ports:
      - 9078:9078
    restart: unless-stopped

@syberslxt I was able to authenticate with YT using new credentials on clean install, just now, so I'm sure it can work. You are welcome to open another issue if you want to troubleshoot. (I could not get cookies from firefox to work. Only worked when using chromium/chrome so make sure that's where you are getting them).


Support customize default host(instead of localhost).

For the specific project in the real word, for the security issues, we have the need that how to customize both host and post  So I think It may be helpful for another. Thank you ;)
Ex: It's lozi.local:port in my case.

Hi @beastoin, could you accept this PR, this would be super useful. Thanks in advance :)

@beastoin the Pull Request is quite a lot larger than it needs to be, mainly because of the file formatting. Making the Pull Request shorter is going to help @arjun-g merge it quicker.
Here's a list of suggested changes:

Remove the .DS_Store file from the Pull Request
In the file package.json:

reset the engine back to "vscode": "^1.23.0"
change the whitespace to tabs for the lines of code for defining defaultHost

In the file server.ts:

Undo all formatting changes:

Use tabs instead of spaces
Use single quotes instead of double quotes
Undo the fixed line length enforced line-wrapping
Replace removed round brackets e.g. line 45

I believe the changes in this file only need to be 3 lines:

add the const SERVER_HOST = ...
add the currentHost: string = SERVER_HOST;
change the getUrl() function to include the currentHost value

@beastoin the Pull Request is quite a lot larger than it needs to be, mainly because of the file formatting. Making the Pull Request shorter is going to help @arjun-g merge it quicker.
Here's a list of suggested changes:
* Remove the .DS_Store file from the Pull Request

* In the file package.json:

  * reset the engine back to `"vscode": "^1.23.0"`
  * change the whitespace to tabs for the lines of code for defining `defaultHost`

* In the file server.ts:

  * Undo all formatting changes:

    * Use tabs instead of spaces
    * Use single quotes instead of double quotes
    * Undo the fixed line length enforced line-wrapping
    * Replace removed round brackets e.g. line [45](https://github.com/arjun-g/vs-swagger-viewer/pull/41/files#diff-fbe3cbee20379f519182721b610e9958R45)
  * I believe the changes in this file only need to be 3 lines:

    * add the `const SERVER_HOST = ...`
    * add the `currentHost: string = SERVER_HOST;`
    * change the `getUrl()` function to include the currentHost value

Very appreciate about your suggestion @alexmcroberts. I have updated the pull request, please check and let me know if there have anything I should change to help @arjun-g merge it quicker.
@slizlaszlo I think it will be merged soon :D, but in case you need, I can support by building a vscode plugin install file.

@beastoin thanks and sorry for the delay. A new version of the extension is published with this PR.
@alexmcroberts thanks for helping out.

@beastoin thanks and sorry for the delay. A new version of the extension is published with this PR.
@alexmcroberts thanks for helping out.

Thanks 🚀


Re-add Send to CompressionCodec constraints

The Send + Sync constraints got removed when zstd support was added, probably because the FrameDecoder in ruzstd 0.5.0 was !Send + !Sync.
I created an issue over there (https://github.com/KillingSpark/zstd-rs/issues/56) and this was changed in 0.6.0, it's now both Send + Sync.
However, zstd_safe::DCtx is explicitly !Sync (though I'm not 100% sure why), so re-adding Sync wouldn't work with the fast_zstd feature currently.
I don't personally need it, but if you do want to also re-add Sync, you could remove the zstd_context member on ZstdCodec again and recreate the context on each decompress() call, I haven't noticed much difference in performance there.

I think it's worth the tradeoff here to recreate DCtx on each call for Sync. I was thinking about putting it behind a Mutex but I don't want to introduce any potential deadlocks there.

I did some manual auditing of zstd_safe and DCtx should be safe to mark Sync since everything is gated behind &mut self. I put it in a wrapper to ensure Chd remains Send + Sync.

Chd is now Send + Sync again as of  0.3.1.


IntVar* Next(int) function returns strange results

The Next() function behaves very differently from what's described here in the section <IP_ADDRESS>.: http://www.lia.disi.unibo.it/Staff/MicheleLombardi/or-tools-doc/user_manual/manual/ls/scheduling_or_tools.html
In the small example bellow, there are 4 operations created and scheduled in order 1, 0, 3, 2. However, the function returns this (output):
seq.Next(0) = 2
seq.Next(1) = 4
seq.Next(2) = 1
seq.Next(3) = 5

Operation 1 starts at 0.
Operation 0 starts at 10.
Operation 3 starts at 20.
Operation 2 starts at 30.

This doesn't make any sense and seems completely random to me. I've also tried messing with it a bit (editing it to +1, -1 etc.) but it doesn't help.
        private static void Solve()
        {
            Solver solver = new Solver("Sequence-dependent costs");

            IntervalVar interval0 = solver.MakeFixedDurationIntervalVar(0, 1000, 10, false, "0");
            IntervalVar interval1 = solver.MakeFixedDurationIntervalVar(0, 1000, 10, false, "1");
            IntervalVar interval2 = solver.MakeFixedDurationIntervalVar(0, 1000, 10, false, "2");
            IntervalVar interval3 = solver.MakeFixedDurationIntervalVar(0, 1000, 10, false, "3");
            IntExpr obj = solver.MakeIntConst(0);

            List<IntervalVar> allIntervals = new List<IntervalVar>(4);
            allIntervals.Add(interval0);
            allIntervals.Add(interval1);
            allIntervals.Add(interval2);
            allIntervals.Add(interval3);
            solver.Add(interval0.StartsAfterEnd(interval1));
            solver.Add(interval2.StartsAfterEnd(interval3));

            List<SequenceVar> all_seq = new List<SequenceVar>();
            DisjunctiveConstraint dc = allIntervals.ToArray().Disjunctive("Sequence");
            solver.Add(dc);
            SequenceVar seq = dc.SequenceVar();
            all_seq.Add(seq);

            IntVar[] ranks = new IntVar[4];
            for (int s = 0; s < 4; s++)
                ranks[s] = seq.Next(s);

            IntVar objective_var = obj.Var();
            OptimizeVar objective_monitor = solver.MakeMinimize(objective_var, 1);
            DecisionBuilder sequence_phase = solver.MakePhase(all_seq.ToArray(), Solver.SEQUENCE_DEFAULT);
            DecisionBuilder objective_phase = solver.MakePhase(objective_var, Solver.CHOOSE_FIRST_UNBOUND, Solver.ASSIGN_MIN_VALUE);
            DecisionBuilder main_phase = solver.Compose(sequence_phase, objective_phase);

            const int kLogFrequency = 100000;
            VoidToString prefix = new Prefix();
            SearchMonitor search_log = solver.MakeSearchLog(kLogFrequency, objective_monitor, prefix);
            SolutionCollector collector = solver.MakeLastSolutionCollector();

            collector.Add(allIntervals.ToArray());
            collector.Add(all_seq.ToArray());
            collector.Add(ranks);
            collector.AddObjective(objective_var);

            if (solver.Solve(main_phase, search_log, objective_monitor, solver.MakeTimeLimit(20000), collector))
            {
                Assignment solution = collector.Solution(0);
                for (int s = 0; s < all_seq.Count; ++s)
                {
                    seq = all_seq[s];
                    int[] storedSequence = collector.ForwardSequence(0, seq);

                    for (int ss = 0; ss < 4; ss++)
                        Console.WriteLine("seq.Next(" + ss + ") = " + solution.Value(ranks[ss]).ToString());

                    foreach (int taskIndex in storedSequence)
                    {
                        IntervalVar task = seq.Interval(taskIndex);
                        if (solution.PerformedValue(task) == 1)
                        {
                            Console.WriteLine("Operation " + task.Name() + " starts at " + solution.StartMin(task) + ".");
                        }
                    }
                }
            }
        }

        static void Main(string[] args)
        {
            Solve();
        }

This was tested with  v6.5.4527, v6.4.4495 and v6.3.4431 (all C#) using Visual Studio 2017.
Is this a known bug?

there are 1 more next that intervals.
Next(0) point to the first interval + 1
next(next(0)) point to the second interval + 1
...
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
2017-10-11 7:52 GMT+00:00 datagen657<EMAIL_ADDRESS>
The Next() function behaves very differently from what's described here in
the section <IP_ADDRESS>.: http://www.lia.disi.unibo.it/
Staff/MicheleLombardi/or-tools-doc/user_manual/manual/
ls/scheduling_or_tools.html
In the small example bellow, there are 4 operations created and scheduled
in order 1, 0, 3, 2. However, the function returns this (output):
seq.Next(0) = 2
seq.Next(1) = 4
seq.Next(2) = 1
seq.Next(3) = 5
This doesn't make any sense and seems completely random to me. I've also
tried messing with it a bit (editing it to +1, -1 etc.) but it doesn't help.
    private static void Solve()
    {
        Solver solver = new Solver("Sequence-dependent costs");

        IntervalVar interval0 = solver.MakeFixedDurationIntervalVar(0, 1000, 10, false, "0");
        IntervalVar interval1 = solver.MakeFixedDurationIntervalVar(0, 1000, 10, false, "1");
        IntervalVar interval2 = solver.MakeFixedDurationIntervalVar(0, 1000, 10, false, "2");
        IntervalVar interval3 = solver.MakeFixedDurationIntervalVar(0, 1000, 10, false, "3");
        IntExpr obj = solver.MakeIntConst(0);

        List<IntervalVar> allIntervals = new List<IntervalVar>(4);
        allIntervals.Add(interval0);
        allIntervals.Add(interval1);
        allIntervals.Add(interval2);
        allIntervals.Add(interval3);
        solver.Add(interval0.StartsAfterEnd(interval1));
        solver.Add(interval2.StartsAfterEnd(interval3));

        List<SequenceVar> all_seq = new List<SequenceVar>();
        DisjunctiveConstraint dc = allIntervals.ToArray().Disjunctive("Sequence");
        solver.Add(dc);
        SequenceVar seq = dc.SequenceVar();
        all_seq.Add(seq);

        IntVar[] ranks = new IntVar[4];
        for (int s = 0; s < 4; s++)
            ranks[s] = seq.Next(s);

        IntVar objective_var = obj.Var();
        OptimizeVar objective_monitor = solver.MakeMinimize(objective_var, 1);
        DecisionBuilder sequence_phase = solver.MakePhase(all_seq.ToArray(), Solver.SEQUENCE_DEFAULT);
        DecisionBuilder objective_phase = solver.MakePhase(objective_var, Solver.CHOOSE_FIRST_UNBOUND, Solver.ASSIGN_MIN_VALUE);
        DecisionBuilder main_phase = solver.Compose(sequence_phase, objective_phase);

        const int kLogFrequency = 100000;
        VoidToString prefix = new Prefix();
        SearchMonitor search_log = solver.MakeSearchLog(kLogFrequency, objective_monitor, prefix);
        SolutionCollector collector = solver.MakeLastSolutionCollector();

        collector.Add(allIntervals.ToArray());
        collector.Add(all_seq.ToArray());
        collector.Add(ranks);
        collector.AddObjective(objective_var);

        if (solver.Solve(main_phase, search_log, objective_monitor, solver.MakeTimeLimit(20000), collector))
        {
            Assignment solution = collector.Solution(0);
            for (int s = 0; s < all_seq.Count; ++s)
            {
                seq = all_seq[s];
                int[] storedSequence = collector.ForwardSequence(0, seq);

                for (int ss = 0; ss < 4; ss++)
                    Console.WriteLine("seq.Next(" + ss + ") = " + solution.Value(ranks[ss]).ToString());
            }
        }
    }

    static void Main(string[] args)
    {
        Solve();
    }

This was tested with v6.5.4527, v6.4.4495 and v6.3.4431 (all C#) using
Visual Studio 2017.
Is this a known bug?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/501, or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17WjGcYhNCb0jS_cVMOLW6Vkc-rA0ks5srHPKgaJpZM4P1DYT
.

seq.Next(seq.Next(0)) cannot be used because Next takes int as argument and returns IntVar

This was not real code :-)
The next(i) point to the successor of the (i - 1)th task.
In your example:
seq.Next(0) = 2
seq.Next(1) = 4
seq.Next(2) = 1
seq.Next(3) = 5
0 (the sentinel) is assigned 2, thus the first task is (2 - 1) = 1.
Next(2) = 1 -> the second task is 0.
Next(1) = 4 -> the third task is 3.
I guess Next(4) = 3 -> the fourth task is 2.
and Next(3) = 5 -> You are hitting the end of schedule sentinel.

Thanks a lot, that's it! In case anyone else has this problem, the exact solution is:
solver.MakeSum(seq.Next(s+1), -1).Var();
Issue closed!


Add release config to bucket's latest folder

Before v0.5.0, release configs were stored only in the previous/{version} folder. Now, the user can get the latest release.yaml by running
kc apply -f https://storage.googleapis.com/tekton-releases/results/latest/release.yaml

This is similar to other projects.

Changes

Submitter Checklist
These are the criteria that every PR should meet, please check them off as you review them:

[ ] Has Docs included if any changes are user facing
[ ] Has Tests included if any functionality added or changed
[ ] Tested your changes locally (if this is a code change)
[ ] Follows the commit message standard
[ ] Meets the Tekton contributor standards (including functionality, content, code)
[ ] Has a kind label. You can add a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[ ] Release notes block below has been updated with any user-facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
[ ] Release notes contain the string "action required" if the change requires additional action from users switching to the new release

Release Notes
NONE

/approve


Failing to upload dataset to the hub

Describe the bug
Trying to upload a dataset of hundreds of thousands of audio samples (the total volume is not very large, 60 gb) to the hub with push_to_hub, it doesn't work.
From time to time one piece of the data (parquet) gets pushed and then I get RemoteDisconnected even though my internet is stable.
Please help.
I'm trying to upload the dataset for almost a week.
Thanks
Steps to reproduce the bug
not relevant
Expected behavior
Be able to upload thedataset
Environment info
python: 3.9

Hi ! Feel free to re-run your code later, it will resume automatically where you left

Alternatively you can save your dataset in parquet files locally and upload them to the hub manually
from tqdm import tqdm
num_shards = 60
for index in tqdm(range(num_shards)):
    ds.shard(num_shards=num_shards, index=index, contiguous=True).to_parquet(f"{index:05d}.parquet")


az login with username and password is failing with {'reason': 'MSIS7068: Access denied.', 'code': 'a:FailedAuthentication'}

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az login
Errors:
The command failed with an unexpected error. Here is the traceback:
WsTrust server returned error in RSTR: {'reason': 'MSIS7068: Access denied.', 'code': 'a:FailedAuthentication'}
Traceback (most recent call last):
  File "/usr/lib64/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 658, in execute
    raise ex
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 692, in _run_job
    result = cmd_copy(params)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
    subscriptions = profile.login(
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/_profile.py", line 158, in login
    user_identity = identity.login_with_username_password(username, password, scopes=scopes, **kwargs)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/auth/identity.py", line 156, in login_with_username_password
    result = self._msal_app.acquire_token_by_username_password(username, password, scopes, **kwargs)
  File "/usr/lib64/az/lib/python3.6/site-packages/msal/application.py", line 1420, in acquire_token_by_username_password
    response = _clean_up(self._acquire_token_by_username_password_federated(
  File "/usr/lib64/az/lib/python3.6/site-packages/msal/application.py", line 1447, in _acquire_token_by_username_password_federated
    wstrust_result = wst_send_request(
  File "/usr/lib64/az/lib/python3.6/site-packages/msal/wstrust_request.py", line 60, in send_request
    return parse_response(resp.text)
  File "/usr/lib64/az/lib/python3.6/site-packages/msal/wstrust_response.py", line 49, in parse_response
    raise RuntimeError("WsTrust server returned error in RSTR: %s" % (error or body))
RuntimeError: WsTrust server returned error in RSTR: {'reason': 'MSIS7068: Access denied.', 'code': 'a:FailedAuthentication'}

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az login -u {} -p {}

Expected Behavior
Environment Summary
Linux-3.10.0-1160.76.1.el7.x86_64-x86_64-with-glibc2.2.5, CentOS Linux 7 (Core)
Python 3.8.11
Installer: RPM

azure-cli 2.36.0

Additional Context

@jiasli for awareness

Please see https://github.com/Azure/azure-cli/issues/20221#issuecomment-962380690
In short, username + password login is not recommended. For more information, please see https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki/Username-Password-Authentication
Azure Portal is different, as you are using a web browser to login. The correct usage is to run az login and log in with your username + password in the browser, not command line.


balance: some changes to make balance more reliable.

random select region for leader balance.
Fix #545. The old way makes balance slow when several stores fall behind too much, and also has the over-schedule problem because scheduling is always concentrated on the store with most leaders.

balance limit should exclude down/tombstone stores.
With this patch, balance speed will not go too fast when several stores are down.

add storageThresholdFilter for regionBalancer.
Do not move regions to a store which is almost full. It normally won't happen, but it's more safe to check it explicitly.

PTAL @siddontang @nolouch

any test?

@siddontang I've added test case for 2. 1 is covered by many cases. 3 basically won't happen, so not easy to test.

any update?  @disksing

PTAL @nolouch @siddontang

PTAL @andelf

PTAL @siddontang


update news to reflect adjusted history on some nodes

see related changes in #143

This PR still needs review/merge for the Sep 1 news update. I have added review requests for @n1zea144 @angelicaochoa and @averyniceday


Base datasets on streaming

Goals:

Read, write and modify datasets that do not fit into main memory.
Streams should be first-class citizens. Base all datasets on streaming to have a single interface.

Possible solutions:

Write own dataformat based on Numpy-blocks living in a tar container. Too much work.
Dask (Documentation, Example): Comes with distributed compute graph and scheduler. Supports Numpy and Pandas interfaces which is nice. Still overkill for us.
HDF5 (Documentation, Example). Looks good for our use case and is well supported. This also makes sets more widely applicable since results can be used from any language or from cluster computing systems like Spark.

We will go with HDF5:

Use h5py library.
h5py file handles will replace our Dataset class completely.
What was a column before now gets a file within the HDF5 container. Don't use HDF5 groups.
We do not enforce equal length for all columns anymore. Also don't call them columns but file, destination, etc. depending on context.
Steps should ask for the filename for their output in the constructor.
Strings should always be unicode. Not enforced but rather a convention for dataset parsers.

Next steps:

Get familiar with HDF5 and h5py. Especially variable-length text data.

Consider using dask.

Seems like we replace the dataset class HDF5 files completely. Some notes:

Strings should always be unicode: http://docs.h5py.org/en/latest/strings.html#variable-length-utf-8

Draft of usage example:
Wikipedia()('/dataset/wikipedia.hdf5/articles')

Tokenize()(
    '/dataset/wikipedia.hdf5/articles',
    '/dataset/target.hdf5/tokens', overwrite=True)

for batch in Batcher(100)('/dataset/target.hdf5/tokens'):
    pass

We now have a preliminary implementation with https://github.com/danijar/sets/pull/16. Things to improve:
Embedding

Rename to Encode.
Give _get_shape() a better name (there is already shape and it does a
different thing).
Bring batch the depth option.
Use np.ndenumerate in apply().

MapStep

Fix all docstrings (formatting and language).
Is there a way to actually operate on batches in hdf5?

Step

Remove unnecessary urllib import.
Fix docstring formatting.

SemEval

Sort imports.
Parameters of _parse_train() should be container and dataset.
Fix all docstrings.

IndexEncode

Why not inherit from Embedding?

Tokenize

Better naming (ds).

Utility

Consider using urllib.request.urlretrieve().

Tests

Review tests.
Rename QuadraticStep to SquareStep
Fix blank lines in classes.


Represent runtime modules as JVM modules with JDK 11 support

Description:
With JDK 11 support with SLP5, we need to look at how we can represent runtime modules (executable jar) as JVM modules.
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):
#22804
Suggested Labels (optional):

Suggested Assignees (optional):

Refer to the mail for the discussion on the topic. It has been concluded to stick with the uber jar for now.


Alexa Media Player fails to reauthenticate

Hello...
Alexa Media Player 3.10.15
HA 2021.12.10
OS 7.1
After request to authenticate i put my opt and i get this error on log and alexa doesn't work
2022-01-21 08:40:42 WARNING (MainThread) [alexapy.helpers] alexaapi.get_network_details((<alexapy.alexalogin.AlexaLogin object at 0x7f38dca2b850>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Login error detected; not contacting API',)
Usually after this procedure in the past it worked wothout problem
any idea ?
opt is correct , I tested it on amazon web
thanks a lot
Tiziano

I have the same problem since this morning.

I also have the same problem

......nice to know :-)

Same here today. I’m in Amazon.co.uk, anyone else in .co.uk, or are you Amazon.com?

I also have the same problem..

I'm .co.uk

amazon.it for me

+1 the same over here amazon.de

same here for amazon.de

same for amazon.it

same for amazon.it

My error log:
Logger: alexapy.helpers
Source: /usr/local/lib/python3.9/site-packages/alexapy/helpers.py:185
First occurred: 07:34:24 (18 occurrences)
Last logged: 07:46:28

alexaapi.get_guard_details((<alexapy.alexalogin.AlexaLogin object at 0x7f74d63760>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Login error detected; not contacting API',)
alexaapi.get_network_details((<alexapy.alexalogin.AlexaLogin object at 0x7f74d63760>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Login error detected; not contacting API',)
alexaapi.get_device_preferences((<alexapy.alexalogin.AlexaLogin object at 0x7f74d63760>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Login error detected; not contacting API',)
alexaapi.get_bluetooth((<alexapy.alexalogin.AlexaLogin object at 0x7f74d63760>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Login error detected; not contacting API',)
alexaapi.get_devices((<alexapy.alexalogin.AlexaLogin object at 0x7f74d63760>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Login error detected; not contacting API',)

Same issue here on amazon.de, I reinstalled AMP and reconfigured. It told me everything is fine. Got the "Reconfigure"-Message like 1 second later

+1 amazon.de

Same issue here on amazon.es. Also my ECHO's have stopped working. Problems at Amazon's house?

6000 reports of alexa down since 7am (GMT) https://downdetector.co.uk/status/amazon-alexa/

6000 reports of alexa down since 7am (GMT) https://downdetector.co.uk/status/amazon-alexa/
Was just coming to post exactly this.

I have managed to authenticate my devices. ECHOs still don't respond to voice commands.

ECHO devices appear added to HA, but not available. It remains for Amazon to solve your problem.

For me it says reauthentication is successful but still remains in red on the integrations page and media player isn't available.

@Jonnas90 I have removed the integration, restarted HA and installed again. It works, but the ECHOs remain off.

same here

Same here as of this morning.

I have managed to authenticate my devices. ECHOs still don't respond to voice commands.

@Jonnas90 I have removed the integration, restarted HA and installed again. It works, but the ECHOs remain off.

I tried the same but the extra card to reauthenticate still shows in Integrations

Same here, Amazon.de

Same issue as others (amazon.co.uk), everything appears to work though, nothing unavailable I just can't clear the red reconfigure box on the integrations page.

My echo devices are having trouble too. There doesn't seem to be any issues logged on the API status page though. Not yet anyway.

same for me in Italy

ECHO devices appear added to HA, but not available. It remains for Amazon to solve your problem.

One of my devices appears available to me, but all of them are still not responding to commands.
Now...

amazon.es

Same here. amazon.es. Echo don't even answer questions...

Same here using amazon.it
I tried to set up a timer directly to my echo, the timer was set (into the alexa app) but no answer from the echo

Same issue with ha integration but unlike others my android app and echo's are working (amazon.co.uk)
At least  i now know it's not my system.

All, the me too posts don't help. +1 if you see someone with the same response. if the problem is there's too many to read... then well..... and please don't respond about this on multiple issues.
If you have something new to add, that will help.
As of this writing, US still looks up so it may be localized to Europe for now.

Now in amazon.es. status:
HA + integration: Works well, all OK!
ALEXA: Only one device on-line and works well

All, the me too posts don't help. +1 if you see someone with the same response. if the problem is there's too many to read... then well..... and please don't respond about this on multiple issues.
If you have something new to add, that will help.
As of this writing, US still looks up so it may be localized to Europe for now.

Hi Alan
Sorry for same here comment i have added a log to see if it helps

All, the me too posts don't help. +1 if you see someone with the same response. if the problem is there's too many to read... then well..... and please don't respond about this on multiple issues.
If you have something new to add, that will help.
As of this writing, US still looks up so it may be localized to Europe for now.

Happening in amazon.in integration as well

Sorry for same here comment i have added a log to see if it helps

Yes thanks. I looked. Logs indicate Amazon servers are closing the connection. Might be a localized outage or it could be an API change. Some people are reporting it's coming back so it may just be a matter of waiting. If Amazon changed something, it may be a longer term outage as we figure out what changed.

Servers seem to be online again. Alexa Media Player works again

My ECHO's are working normally again. The integration in HA has been successfully authenticated. However, the status does not correspond to what I am playing.

Amazon.es work well now!

Still out in the UK I just get "Invalid Built-In 2FA key" on re-installation :(

Working now in India as well

Amazon.de is also working again after 2.5 outage.
I suppose this issue can be closed as it doesn't seem to be a long term api problem.

everything works fine, problem solved

Working again (amazon.it)

Had to restore the addon from last nights backup and reauthenticate. Now working UK. :)


Add "Value" property to Model in order to associate business data

That's what custom node models are for. The default node model can't include everything for all use cases, that's why it's as simple as possible.

I saw value property in mxGraph's mxCell model，and it's a pretty common user case to associate business data.


Rename akka reference to pekko

Self explanatory

lgtm - the mqtt-streaming tests are failing again but otherwise things look ok

it's a different one than the two that I fixed, luckily. Let's make sure to file issues and add references to them when they happen, so we can see which are the most urgent to fix next. Added #468


[VL] Native R2C assembles Arrow vectors in Java side unnecessarily

Follow-up to https://github.com/oap-project/gluten/pull/1082#discussion_r1133612154

Fixed by https://github.com/oap-project/gluten/pull/1137


kingproxies doesn't have free plan, but an error is message is shown if you don't pass in an api key

The title pretty much says it all. Wouldn't expect to be given an error message if there's no free plan - but maybe you wanted it that way. Just thought I'd let you know in case it's a bug :)

I understand what you mean. The reason for the warning message is to inform the user that they won't be gathering proxies from those sources that require an account to get valid proxy data. But I do understand that it can be a bit annoying. Maybe the solution is to add a new option/setting for the proxy-lists module that allows the user to set the verbosity level of the module?

That would definitely be a nice option to have. Thanks for the module, by the way. It's great!

I created a new issue for the new feature idea.


Feature request: Static ip

Hello guys, Can you add a static ip in the ui?

We have Static IP support.


can't specify the node without GPUs using CLI

Describe the bug
Specifying a node using tf-grid-cli will result in an error saying you have to specify GPUs
To Reproduce
Steps to reproduce the behavior:

run tf-grid-cli deploy vm --name anyname --ssh ~/.ssh/id_rsa.pub --node 12

Expected behavior
To try deploying on the node not fail because a GPU is not specified.

Verified on devnet.
Using the latest release 0.10.4 i was able to deploy a vm with the --node flag without specifying a gpu and it was deployed without any issues.


Issue with inclusion and building of native module: @discordjs/opus

Preflight Checklist

[x] I have read the contribution documentation for this project.
[x] I agree to follow the code of conduct that this project follows, as appropriate.
[x] I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

Electron Forge Version:

6.0.0-beta.57

Electron Version:

v13.1.5

Operating System:

Mac OS 11.3

Last Known Working Electron Forge version::

n/a

Expected Behavior
Inclusion of @discordjs/opus as a native module would not produce an error on launch.
Actual Behavior

Error: ./.webpack/package.jsondoes not exist
    at exports.find (./.webpack/main/index.js:1843:9)
    at<EMAIL_ADDRESS>(./.webpack/main/index.js:2420:26)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object.../NoodleJS/dist/Connection.js (./.webpack/main/index.js:63:16)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object.../NoodleJS/dist/index.js (./.webpack/main/index.js:809:38)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object../src/mumble/index.ts (./.webpack/main/index.js:62580:32)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object../src/ipc/mumble.ts (./.webpack/main/index.js:62350:32)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object../src/index.ts (./.webpack/main/index.js:62212:16)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at ./.webpack/main/index.js:62851:37
    at Object.<anonymous> (./.webpack/main/index.js:62854:12)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)

(Note: logs have have absolute paths replaced for privacy)
To Reproduce
Repository here
npx create-electron-app discord-opus-test --template=typescript-webpack
cd discord-opus-test
yarn add @discordjs/opus

In src/index.ts add the following to the top of the file:
import { app, BrowserWindow } from 'electron';
import opus from '@discordjs/opus'
console.log(opus)

// .....

npm run start

Additional Information
References to an issue on their repository says that this is unsupported by webpack - however other native modules are, so I'm a little lost on how others are able to function fine with node forge and this one is not able to.
I have tried setting up a copy command to move package.json into the correct directory, but that just produces a different error:
Error: percetta package.json is not node-pre-gyp ready:
package.json must declare these properties:
binary
    at Object.validate_config (./.webpack/main/index.js:2293:9)
    at exports.find (./.webpack/main/index.js:1849:13)
    at<EMAIL_ADDRESS>(./.webpack/main/index.js:2420:26)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object.../NoodleJS/dist/Connection.js (./.webpack/main/index.js:63:16)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object.../NoodleJS/dist/index.js (./.webpack/main/index.js:809:38)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object../src/mumble/index.ts (./.webpack/main/index.js:62580:32)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object../src/ipc/mumble.ts (./.webpack/main/index.js:62350:32)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at Object../src/index.ts (./.webpack/main/index.js:62212:16)
    at __webpack_require__ (./.webpack/main/index.js:62827:42)
    at ./.webpack/main/index.js:62851:37
    at Object.<anonymous> (./.webpack/main/index.js:62854:12)

(Note: logs have have absolute paths replaced for privacy)

Would be handled by #1250


Added Zenhub boards to README.md

Explain your changes:

Added Zenhub boards to README.md

Explain how you tested your changes:

Changes were previewed on Github before being committed.

I checked the links. They work.


Add importlib-metadata

TL;DR
Please replace this text with a description of what this PR accomplishes.
Type

[ ] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
https://github.com/flyteorg/flyte/issues/
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/

👀 @aneeshusa @eschachar

🔨

💨


Issue: Target the same element with multiple jQuery selectors - won't RUN

Challenge Name

https://www.freecodecamp.com/challenges/target-the-same-element-with-multiple-jquery-selectors
Issue Description

I've refreshed the browser, cleared the code and every time I try to RUN it - nothing happens. I'm fairly certain my code is correct, but it just won't RUN and so I cannot get credit for completion.
Browser Information

Browser Name, Version: Chrome Version 55.0.2883.87 m
Operating System: Windows 7 Home Premium SP1
Mobile, Desktop, or Tablet: Laptop

Your Code

Screenshot

No error messages. When I try to clear the code, the error messages appear
but then my code is gone. I retype it, same thing. When I click run, no
error messages. I will post my code later. I'm on my phone right now.
Aloha,
Richard Ingalls, BSEd.
On Jan 14, 2017 9:38 PM, "Peter Weinberg"<EMAIL_ADDRESS>wrote:

@CapnRichard https://github.com/CapnRichard Hi there, it would be very
helpful if you could post your code in order to help us determine if there
is in fact a bug, as I am unable to reproduce this, the challenge seems to
be working fine for me.
Besides posting code when you open an issue (which is always good
practice), my first suggestion would be to check out the forum or Help
Chatroom https://gitter.im/FreeCodeCamp/HelpJavaScript to see if
someone can help you determine if your solution could perhaps be the
problem.
Also, can you clarify what you mean by it doesn't run? Are you not even
getting error messages, or is the test suite telling you there are errors?
Are other challenges working fine?
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/12529#issuecomment-272671249,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AX5mYmaxn50u0xMTiza0E2hzRgYLcrbEks5rSZS9gaJpZM4LjvnU
.

Here is my code:

jQuery Playground

#left-well

#target1
#target2
#target3

#right-well

#target4
#target5
#target6

On Sun, Jan 15, 2017 at 2:40 AM, Richard Ingalls<EMAIL_ADDRESS>wrote:

No error messages. When I try to clear the code, the error messages appear
but then my code is gone. I retype it, same thing. When I click run, no
error messages. I will post my code later. I'm on my phone right now.
Aloha,
Richard Ingalls, BSEd.
On Jan 14, 2017 9:38 PM, "Peter Weinberg"<EMAIL_ADDRESS>wrote:

@CapnRichard https://github.com/CapnRichard Hi there, it would be very
helpful if you could post your code in order to help us determine if there
is in fact a bug, as I am unable to reproduce this, the challenge seems to
be working fine for me.
Besides posting code when you open an issue (which is always good
practice), my first suggestion would be to check out the forum or Help
Chatroom https://gitter.im/FreeCodeCamp/HelpJavaScript to see if
someone can help you determine if your solution could perhaps be the
problem.
Also, can you clarify what you mean by it doesn't run? Are you not even
getting error messages, or is the test suite telling you there are errors?
Are other challenges working fine?
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/12529#issuecomment-272671249,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AX5mYmaxn50u0xMTiza0E2hzRgYLcrbEks5rSZS9gaJpZM4LjvnU
.

Yeap, more of a false code thing, NOT a bug.
You should try to use helprooms if your code seems correct and is not running, people there usually know what might be up.
CSS/HTML Help
JS Help
Currently your instructions tell you to:
Add the animated class to all elements with type button.
Add the shake class to all the buttons with class .btn.
Add the btn-primary class to the button with id #target1.
You are adding all to #target1

Hi @CapnRichard!
As @OFFLlNE mentioned, there are some issues with your code that prevent it from running.
@OFFLlNE gave some good hints on how to pass the tests. Another thing to keep in mind is that Javascript is case-sensitive, meaning that contrary to HTML, where you put upper and lower case letters matters.
As also mentioned before, if you have trouble passing a challenge, the help rooms linked above is where you want to go. You can also get there by clicking the "Help" button on the challenge.
Happy coding!

It doesn't matter what I put in for my targets, when I click RUN nothing
happens. There is NO text underneath with red or green to indicate what is
correct or incorrect about my code. See the attached screen shot.
[image: Inline image 1]
On Sun, Jan 15, 2017 at 7:49 AM, Timo<EMAIL_ADDRESS>wrote:

Closed #12529 https://github.com/freeCodeCamp/freeCodeCamp/issues/12529.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/12529#event-923495559,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AX5mYjdixZBcV34HnXBU50OVTJTEQwwsks5rSiPmgaJpZM4LjvnU
.

Sorry - the ATTACHED screen shot, not the one that I accidentally copied
into the email
On Sun, Jan 15, 2017 at 9:01 AM, Richard Ingalls<EMAIL_ADDRESS>wrote:

It doesn't matter what I put in for my targets, when I click RUN nothing
happens. There is NO text underneath with red or green to indicate what is
correct or incorrect about my code. See the attached screen shot.
[image: Inline image 1]
On Sun, Jan 15, 2017 at 7:49 AM, Timo<EMAIL_ADDRESS>wrote:

Closed #12529 https://github.com/freeCodeCamp/freeCodeCamp/issues/12529
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/12529#event-923495559,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AX5mYjdixZBcV34HnXBU50OVTJTEQwwsks5rSiPmgaJpZM4LjvnU
.

so its the Case Sensitive issue with my .AddClass Sorry. Thanks
On Sun, Jan 15, 2017 at 9:02 AM, Richard Ingalls<EMAIL_ADDRESS>wrote:

Sorry - the ATTACHED screen shot, not the one that I accidentally copied
into the email
On Sun, Jan 15, 2017 at 9:01 AM, Richard Ingalls <
<EMAIL_ADDRESS>wrote:

It doesn't matter what I put in for my targets, when I click RUN nothing
happens. There is NO text underneath with red or green to indicate what is
correct or incorrect about my code. See the attached screen shot.
[image: Inline image 1]
On Sun, Jan 15, 2017 at 7:49 AM, Timo<EMAIL_ADDRESS>wrote:

Closed #12529
https://github.com/freeCodeCamp/freeCodeCamp/issues/12529.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/12529#event-923495559,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AX5mYjdixZBcV34HnXBU50OVTJTEQwwsks5rSiPmgaJpZM4LjvnU
.

Case SeNsiTivE - DOH! thanks
On Sun, Jan 15, 2017 at 7:49 AM, Timo<EMAIL_ADDRESS>wrote:

Hi @CapnRichard https://github.com/CapnRichard!
As @OFFLlNE https://github.com/OFFLlNE mentioned, there are some issues
with your code that prevent it from running.
@OFFLlNE https://github.com/OFFLlNE gave some good hints on how to pass
the tests. Another thing to keep in mind is that Javascript is
case-sensitive, meaning that contrary to HTML, where you put upper and
lower case letters matters.
As also mentioned before, if you have trouble passing a challenge, the
help rooms linked above is where you want to go. You can also get there by
clicking the "Help" button on the challenge.
Happy coding!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/12529#issuecomment-272696283,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AX5mYhP3RpndnUcMsZGodvSLkQA3_Aklks5rSiPjgaJpZM4LjvnU
.

here is the code:

@Johnishaya
Please do not post your solution on here. You could help people at FreeCodeCamp Chat Room or Forum. GitHub Issues are for reporting bugs on the website only.
Happy Coding!


PwrCap - does not stay static

When setting all devices to a max power cap of any number (in this screenshot, it was set to 100), over time it ignores this and the power adjusts automatically.
I loop through each device, but per device the commands are:
Exact Powershell:
$gpuList = ((echo '{"command": "list_devices"}' | ncat -U /run/lactd.sock | ConvertFrom-Json).data) | Where-Object { $_.name -notmatch 'HD Graphics' }

$powerCap = "100"
$performanceLevel = "manual"
$max_memory_clock = "1900"
$max_core_clock = "1100"

$gpuStats = @()

foreach ($gpu in $gpuList) {

    Write-Host "Setting gpu: $($gpu.id) - Memory: $($max_memory_clock) - Core: $($max_core_clock)" -ForegroundColor Green

    Invoke-Expression -Command "echo '{""command"": ""set_performance_level"", ""args"": {""id"": ""$($gpu.id)"", ""performance_level"": ""$($performanceLevel)""}}' | ncat -U /run/lactd.sock"
    Invoke-Expression -Command "echo '{""command"": ""confirm_pending_config"", ""args"": {""command"": ""confirm""}}' | ncat -U /run/lactd.sock"
    Invoke-Expression -Command "echo '{""command"": ""set_clocks_value"", ""args"": {""id"": ""$($gpu.id)"", ""command"": {""type"": ""max_memory_clock"", ""value"": $($max_memory_clock)}}}' | ncat -U /run/lactd.sock"
    Invoke-Expression -Command "echo '{""command"": ""confirm_pending_config"", ""args"": {""command"": ""confirm""}}' | ncat -U /run/lactd.sock"
    Invoke-Expression -Command "echo '{""command"": ""set_clocks_value"", ""args"": {""id"": ""$($gpu.id)"", ""command"": {""type"": ""max_core_clock"", ""value"": $($max_core_clock)}}}' | ncat -U /run/lactd.sock"
    Invoke-Expression -Command "echo '{""command"": ""confirm_pending_config"", ""args"": {""command"": ""confirm""}}' | ncat -U /run/lactd.sock"
    Invoke-Expression -Command "echo '{""command"": ""set_power_cap"", ""args"": {""id"": ""$($gpu.id)"", ""cap"": $($powerCap)}}' | ncat -U /run/lactd.sock"
    Invoke-Expression -Command "echo '{""command"": ""confirm_pending_config"", ""args"": {""command"": ""confirm""}}' | ncat -U /run/lactd.sock"

}

foreach ($gpu in $gpuList) {

    $deviceStats = (echo '{"command":"device_stats","args": {"id": "1002:67DF-1682:C580-0000:0b:00.0"}}' | ncat -U /run/lactd.sock | ConvertFrom-Json).data

    # Add the GPU statistics to the array
    $gpuStats += $deviceStats

    # Add custom properties to the last element of the array
    $gpuStats[-1] | Add-Member -MemberType NoteProperty -Name "GPU_ID" -Value $gpu.id
    $gpuStats[-1] | Add-Member -MemberType NoteProperty -Name "GPU_Type" -Value $gpu.name

    Start-Sleep -Seconds 1
}

Can you provide more info on when the power limit resets? How long does it take for it to reset? Does anything else (clocks, performance level) reset? Is anything printed in system logs (dmesg)?
This could be solved by performing a check every few minutes that compares the actual settings of the gpu to the previously applied ones, though this is not an ideal solution.
Also, I have to say that I did not expect LACT to be used for mining rigs. Good to know that the API is useful though.

Currently on a work call... but yeah, LACT is 100% useful.  I use it instead of rocm-smi and is my default oc/stat'er.
I have a check every so many minutes to see if it changes and force it again.
I'd say it resets probably slowly starting with 15 minutes, one by one and within an hour all have reset.
But, i'll check those logs and let you know.

I have this issue too, no matter which power cap I set, the GPU starts "power throttling" even before it reaches the rated normal 135 watts max. I didn't get this issue on Linux Mint but I get it on Fedora 38/39 and Nobara 38 with and without amdgpu.ppfeaturemask=0xffffffff or amdgpu.ppfeaturemask=0xfffd7fff. It may be worth the time to test older kernels where this is possibly a non-issue and find which kernel this is a problem.

@pinbuck this sounds like a kernel-side issue, you should report it on https://gitlab.freedesktop.org/drm/amd.


add solution

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Closes #XXXXX

@dingjy94 You need to test your solution locally before creating a PR.  It is currently failing Travis (see the Details link above) for why it is failing.

@dingjy94 In the future, just the Moderator Tools app which has been discussed on Gitter and search for the filename, to check for other PRs affecting the same file.

@RandellDawson Thank you for your instruction. I will test my solution locally. Should I also close the #34496 and create new PR after I test the solution locally?

@dingjy94 You do not have to close #34496.  Just push to the same branch and it will update the PR with the new changes.


"Invalid US-ASCII character" generating css

This is a beautiful theme.
I just tried to clone pixyll and serve the master branch, and (after commenting out the gems as in #121) I'm getting:
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'css/pixyll.scss':
    Invalid US-ASCII character "\xC2" on line 7
jekyll 2.5.3 | Error:  Invalid US-ASCII character "\xC2" on line 7

Ruby version is 2.2.2p95, and Jekyll version is 2.5.3.
Thanks!

Hm, that's weird. I've run into this before with Jekyll, but it was the result of a CSS file not having declared @charset "UTF-8";. I just double checked to make sure the Pixyll CSS file did, and noticed that it was declared as "utf-8" rather than "UTF-8" that the Mozilla docs specify, so I'm wondering if that has anything to do with it.
I'm going to push a change for the charset casing so you can give that a try.

You can now pull down the latest changes, @bennettrogers. Please let me know if this works or not, thanks!

It wasn't the casing issue (that would have been sad if it was).
The issue is that in my bash profile, I have the LC_ALL="C". I had done this to get file sorting via ls to behave in a preferred way, but it's apparently forcing other aspects of my system to use ascii instead of UTF-8. I'm not familiar with the differences in locale settings, but this stackexchange answer does a decent job of explaining.
It seems like this might be an issue within jekyll or ruby, but I couldn't figure out a fix to allow the site to build under that locale.
My solution is to change my locale to be "C.UTF-8", which apparently has most of the qualities of the C locale, while enabling UTF-8 support. I didn't even know this locale existed, and I guess it doesn't exist everywhere - for example Ubuntu 10.04 and OSX don't have it.
Now my bash profile contains:
if locale -a | grep -qF 'C.UTF-8'; then
    loc="C.UTF-8"
else
    loc="en_US.UTF-8"
fi
export LANG=$loc
export LC_ALL=$loc

This seems to work for now (until I find a reason why I really do want the C locale and use it when C.UTF-8 isn't available).
Thanks for looking into this so quickly!

No worries, I'm glad you were able to come up with a solution. Thanks for creating such a detailed response in case someone else encounters the same issue.

Much appreciated @bennettrogers, I had the same issue while running Jekyll in a Docker container (ubuntu:latest image).
The locale was set to "POSIX", and changing it to "C.UTF-8" did the trick.
Solution was to add this to my Dockerfile:
ENV LC_ALL C.UTF-8

Hat tip: http://askubuntu.com/questions/581458/how-to-configure-locales-to-unicode-in-a-docker-ubuntu-14-04-container

Same thing:
DEBUG [6daaba0d] 	  Conversion error: Jekyll::Converters::Scss encountered an error while converting 'css/pixyll.scss':
DEBUG [6daaba0d] 	                    Invalid US-ASCII character "\xC2" on line 7
DEBUG [6daaba0d] 	jekyll 2.5.3 | Error:  Invalid US-ASCII character "\xC2" on line 7


How to extract function argument and return value??

It is a very helpful article for understanding. I would like to know, how we can extract function parameter name, value and also function return value.

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

ID: ebb4f9b7-d848-6548-76a1-3a2da84380e6
Version Independent ID: 59c8856d-a5ad-a91a-bdea-76eed7dffc00
Content: FunctionLeave2 Function
Content Source: docs/framework/unmanaged-api/profiling/functionleave2-function.md
Product: dotnet-framework
GitHub Login: @mairaw
Microsoft Alias: mairaw

Thanks @Ashutosh-K-Singh. @noahfalk do you own profiling or knows who own that could help with this question?

My team owns it.

To get parameter names you would want to use metadata...
a) ICorProfilerInfo::GetFunctionInfo() converts from FunctionID -> ModuleID and mdToken (MethodDef token)
b) ICorProfilerInfo::GetModuleMetaData() get an IMetadataImport interface for the ModuleID
c) IMetadataImport::GetParamForMethodInfex() gets a ParamDef token for the n'th parameter given the MethodDef token for the method
d) IMetaDataImport::GetParamProps() gets the name of the parameter given the ParamDef token

To get values you need to inspect the memory that is pointed to by the argument info
a) FunctionEnter2 has an argumentInfo structure passed to you as an argument
b) COR_PRF_FUNCTION_ARGUMENT_INFO describes a set of memory ranges where are all the arguments are stored in left to right order
c) You can use metadata to understand the types of the arguments (IMetadataImport::GetMethodProps to get the signature blob, which then can be parsed according to ECMA CLI specification for a LocalVarSignature)
d) Once you know the types of the arguments, you can infer their sizes and how to interpret the bytes you are reading from memory. For example an int is going to be 4 bytes of the memory range or any reference type is going to be a pointer sized piece of memory that points at the object contents. Methods such as ICorProfilerInfo2::GetClassLayout, ICorProfiler2::GetArrayObjectInfo, and ICorProfiler2::GetBoxClassLayout can assist in understanding the layout of complex types that might appear in these arguments

Return value is similar to arguments, except use the retvalRange parameter in FunctionLeave2.

Sorry this is just a quick overview as the full details can get fairly involved. I hunted around to see if I could find a sample but unforetunately I didn't locate one. Hope this helps though.

Thanks @noahfalk! Closing  this issue then.

Thanks @mairaw  and @noahfalk  for super fast response!
I was trying from couple of days to extract the function input  and return parameter of a function. Although  @noahfalk  mentioned  here a straightforward  approach to extract the information but it still seems me hard to find parameter here. There are so many cases and searching at byte and memory  level seems a bit tedious here.
In my case am trying to capture a property value as below -
output.Result.RequestMessage.RequestUr
Sample  .NET code  for which i am profiling.
public void FatDateNow()
{
DateTime dt = DateTime.Now;
        HttpClient http = new HttpClient();
        http.BaseAddress = new Uri("http://dev-api-csplugin.crosscode.io");
        http.DefaultRequestHeaders.Accept.Clear();
        http.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

        AccountAPIInputParam input = new AccountAPIInputParam();
        input.AccountId = string.IsNullOrWhiteSpace(null) ? "d2b5ec99-8123-3d20-866a-3d7d203b5479" : null;
        var d = JsonConvert.SerializeObject(input);
        var content = new StringContent(d, Encoding.UTF8, "application/json");
        try
        {
            var output = http.PostAsync("api/v1.0/getAccountLibrary", new StringContent("test"));
            var url = **output.Result.RequestMessage.RequestUr**i;

            //InterceptLib.DebugLogger.Log(http.BaseAddress + http.)
        }
        catch (Exception ex)
        {

        }

        System.Console.Write("AKS -DateTime.Now : ");
        System.Console.WriteLine(dt.ToString("HH:mm"));
    }

Here is the sample of code which i am trying to find the function parameter in return parameter.
I have created a common function as below, which i am using in FunctionEnter2 and FunctionLeave2:
Sample Profiler code which i am trying-
*void ILRewriteProfilerImpl::WriteMethodInfo(FunctionID functionId, COR_PRF_FUNCTION_ARGUMENT_INFO pArgInfo)
{
IMetaDataImport *pMetaDataImport;
PCCOR_SIGNATURE pSig, p, pParamStart;
WCHAR           szName[256], szType[256], szValue[256], szBuf[1024];
ULONG           i,sequence;
CorElementType  type;
mdMethodDef     methodDef;
mdTypeDef       typeDef;
BOOL            bArray, bRef;
LPVOID          *lplpValue;
mdParamDef       paramDef;
LPWSTR           szParamNAme;
g_debugLogger << "WriteMethodInfo" << std::endl;

m_corProfilerInfo2->GetTokenAndMetaDataFromFunction(functionId, IID_IMetaDataImport, (IUnknown **)&pMetaDataImport, &methodDef);
pMetaDataImport->GetMethodProps(methodDef, NULL, szName, 256, NULL, NULL, &pSig, NULL, NULL, NULL);

//pMetaDataImport->GetParamForMethodIndex(methodDef, sequence, &paramDef);
//pMetaDataImport->GetParamProps(paramDef,methodDef)

p = &pSig[2];
pParamStart = p;

g_debugLogger << "WriteMethodInfo - function Name" << szName << std::endl;
g_debugLogger << "numRanges = " << pArgInfo->numRanges <<"totalArgumentsize " <<pArgInfo->totalArgumentSize << std::endl;
g_debugLogger << "WriteLogFile(szBuf);" <<std::endl;

p = pParamStart;

for (i = 0; i < pArgInfo->numRanges; i++) {
	lplpValue = (LPVOID *)pArgInfo->ranges[i].startAddress;

	type = GetElementType(&p, &typeDef, &bRef, &bArray);
	GetElementTypeName(pMetaDataImport, type, typeDef, bRef, bArray, szType);

	g_debugLogger << "GetElementTypeName called" << std::endl;

	if (bArray) {

		g_debugLogger << "bArray = true " <<  std::endl;
		GetArray(lplpValue, type, szValue);
		wsprintfW(szBuf, L"%s = %s", szType, szValue);
		g_debugLogger << "bArray " << szType <<" "<< szValue << std::endl;
		//WriteLogFile(szBuf);
	}
	else if (type == ELEMENT_TYPE_CLASS) {
		g_debugLogger << "bArray = ELEMENT_TYPE_CLASS " << std::endl;

		ClassID  classId;
		g_debugLogger << "Going to convert in objectID" << std::endl;
		**ObjectID oid = *(ObjectID *)(lplpValue);**  //breaks the programe

		g_debugLogger << "ObjectID oid = *(ObjectID *)(lplpValue); " << std::endl;
		m_corProfilerInfo2->GetClassFromObject(oid, &classId);
		g_debugLogger << "_corProfilerInfo2->GetClassFromObject(oid, &classId) " << std::endl;

		GetClass(pMetaDataImport, classId, szType, *lplpValue);

		g_debugLogger << "GetClass finished" << szType << " " << classId << std::endl;

	}
	else if (type == ELEMENT_TYPE_VALUETYPE) {

		g_debugLogger << "bArray = ELEMENT_TYPE_VALUETYPE " << std::endl;
		ClassID  classId;
		ModuleID moduleId;

		m_corProfilerInfo2->GetFunctionInfo(functionId, 0, &moduleId, 0);
		m_corProfilerInfo2->GetClassFromToken(moduleId, typeDef, &classId);

		GetClass(pMetaDataImport, classId, szType, lplpValue);

	}
	else {

		g_debugLogger << "bArray = else  " << std::endl;

		GetValue(bRef ? *lplpValue : lplpValue, type, szValue);
		//wsprintfW(szBuf, L"%s = %s", szType, szValue);

		g_debugLogger << "wsprintfW(szBuf, L, szType, szValue);" << szType<< "  "<<szValue <<std::endl;

		//WriteLogFile(szBuf);
	}
}

g_debugLogger << "pMetaDataImport->Release();" << std::endl;

pMetaDataImport->Release();

}
It gives us class structure  but still breaking while converting in objectId as highlighted in above code. I dont know what i am missing or what should be write approach or code here. Please have a look and help me out.
Thanks
Ashutosh

Hi, @mairaw and @noahfalk , can you guys have look and provide me some solution? It would be highly appreciable.
Thanks

You might want to check out https://github.com/dotnet/coreclr/issues/18977. It doesn't have an answer for you yet, but I think its going in that direction.


Offline Requests not listed in Requests

US 08.02.01
As a rider, I want to see requests that I have made while offline.

Fix will require user to refresh twice after uploaded and my cop out is screw elastic search


Switch to ESM modules and bump version of Reffy

This replaces calls to require with import syntaxes.
Also taking this opportunity to fix the study-backrefs.js CLI, which was still expecting a results format that got changed a long time ago.
Note: We will probably want to merge these individual CLIs into the main strudy CLI at some point.

Similar updates as done in browser-specs, Reffy and Webref. Taking the liberty to merge. There may be remaining hiccups, but they will be easy to fix once we bump into them.


[WIP] Add CAS support

This PR adds basic CAS support to authenticate users in BookStack.
This small hack is already in production for my own needs, but I felt like it would be a nice addition to upstream.
I've never worked with Laravel before, so all suggestions to improve this are welcome!

Hi @zyuiop,
Thank you for offering this pull request.
Did you come across issue #1640 at all? I stand by my comment in that issue, in that I'd look to not include CAS authentication unless found critical by a large portion of BookStack users, especially as there seems to be some level of overlap with SAML.
I am genuinely thankful to you for offering this upstream, but it's just the documentation, dev environment, testing, ongoing maintenance and support that I'm mostly concerned with.

Hi,
Sorry, I did see this issue before I started hacking but I completely
forgot about it after that.
I understand that most users don't need that protocol, but the reason why I
did that is that it's a way simpler protocol to implement.
Anyway, I'd perfectly understand if you close this PR.
Cheers!
Louis
Le sam. 4 avr. 2020 à 02:28, Dan Brown<EMAIL_ADDRESS>a écrit :

Hi @zyuiop https://github.com/zyuiop,
Thank you for offering this pull request.
Did you come across issue #1640
https://github.com/BookStackApp/BookStack/issues/1640 at all? I stand
by my comment in that issue, in that I'd look to not include CAS
authentication unless found critical by a large portion of BookStack users,
especially as there seems to be some level of overlap with SAML.
I am genuinely thankful to you for offering this upstream, but it's just
the documentation, dev environment, testing, ongoing maintenance and
support that I'm mostly concerned with.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/pull/2001#issuecomment-608895423,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAYIAUUKZ3XGM3GYFSZQNP3RKZ5J7ANCNFSM4L4R725Q
.

Thank you for your understanding. Good to know it's a simpler protocol though. If there's any tweaks we can do to make it easier to maintain your patches, for your own use, feel free to open an issue here to let me know.
Otherwise, I'll close this off.


⚠  No permission handler detected.

Expected Behavior

I am trying to build with this library and react-native-permissions

Actual Behavior

I am getting the following error:

⚠  No permission handler detected.

• Check that you added at least one permission handler in your package.json reactNativePermissionsIOS config.
• Uninstall this app, reinstall your Pods, delete your Xcode DerivedData folder and rebuild it.

-[RNPermissions constantsToExport]
    RNPermissions.m:209
__57-[RCTModuleData gatherConstantsAndSignalJSRequireEnding:]_block_invoke
RCTUnsafeExecuteOnMainQueueSync
-[RCTModuleData gatherConstantsAndSignalJSRequireEnding:]
-[RCTModuleData gatherConstants]
__49-[RCTCxxBridge _prepareModulesWithDispatchGroup:]_block_invoke
DED4D0A5-1420-32AE-83A6-C31D938A1C9A
DED4D0A5-1420-32AE-83A6-C31D938A1C9A
DED4D0A5-1420-32AE-83A6-C31D938A1C9A
_dispatch_main_queue_callback_4CF
42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B
42CCFC7B-FF32-3D25-8F01-CCB2AD843A8B
CFRunLoopRunSpecific
GSEventRunModal
CF21AD9C-EFBF-3961-A7C0-54BD30CEFEA9
UIApplicationMain
main
4B042F28-0D14-30EC-A1DE-3DBB10866AD7

Steps to Reproduce the Problem

yarn create react-native-app my-app
yarn add @dongminyu/react-native-step-counter react-native-permissions
react-native link @dongminyu/react-native-step-counter
npx pod-install
npx react-native run-*android/ios*

Specifications

first, you should check your react-native-step-counter version and write it down.

@dongminyu/react-native-step-counter version: 0.1.3

추가로 알게 된 것.
두가지 방법을 모두 사용하면 인터페이스 충돌이 일어나 빌드가 안된다.
별로 알고싶지는 않았다...