Cache policy control for image source

Motivation
In the context of an app an image exists in three resolutions on the server: thumb (30px) feed (300px) full (900px). When looking at an individual item a user can come either from the feed, via a permalink or from other parts of the app. This allows a situation where the feed image might or might not already be loaded somewhere in the app. In the detail view I want to render thumb with a blur (to quickly display something), then the feed image if it exists to have something decent to display until full loads. However it is quite a waste to load the feed image if it isn't already in cache, and will slow down the time until full is loaded. It is possible to track the navigation from feed->detail and that the feed image has actually completed loading by the feed component however as component hierarchies grow this turns into quite a lot of prop passing and bad separation of concerns.
Solution
NSURLRequests accepts a Cache Policy that can be used to control a requests interaction with the cache. For the use case in motivation a cache policy of returnCacheDataDontLoad fulfills the requirement.
This PR exposes the cace policy to the Image Source. Cache policy is controlled via a cache property. The fetch API provides a platform agnostic way to specify cache policy. In an effort to provide an API ready for a future Android implementation, and users with something they recognize from the web the property naming and values are identical to the ones in fetch. The values are mapped against the iOS API per the table below.

iOS
fetch (and this PR)

useProtocolCachePolicy
default

reloadIgnoringLocalCacheData
reload

returnCacheDataElseLoad
force-cache

returnCacheDataDontLoad
only-if-cached

Notes

An example is added to UIExplorer for both demonstration and testing purposes, however this can be removed if deemed redundant.

Test Plan
An example has been added to UIExplorer for both demonstration and testing purposes. This example demonstrates the two cases (default and only-if-cached) that can be proven without a custom server component. As all we are doing is setting different native properties it would be safe to assume that if two can be set the others will be set correctly as well (or there is a serious bug in RCT_ENUM_CONVERTER)

This is great! As a general feedback, most enum prop values throughout the codebase use kebab-case. Before you change that though I would like to discuss the enum itself as it would probably be a good idea to think of future android implementation. I'm coming up with two ways to go:

Don't use platform specific wording, but borrow web semantics instead. Cache-Control header comes to mind.
Use a suffix, ie cachePolicyIOS for now and when we have a cross platform API we deprecate it.

A platform agnostic property would be better than a iOS specific one. I took a stab at mapping these to the HTTP Cache-Control headers. Only a few of them are good matches, I came up with a home-made terminology in the alternative column that better matches what it actually does. Let me know what you think.

iOS
Cache-Control
Good Match
Alternative

useProtocolCachePolicy

No. There is no match.
default

reloadIgnoringLocalCacheData
no-store
Semi-good
ignore-local-cache

reloadIgnoringLocalAndRemoteCacheData
no-cache
So-so
ignore-all-cache

returnCacheDataElseLoad
max-age
Not great, people are used to providing a value to max-age
if-exists

returnCacheDataDontLoad
only-if-cached
Great
only-if-cached

reloadRevalidatingCacheData
must-revalidate
Semi-good
must-revalidate

reloadIgnoringLocalAndRemoteCacheData and reloadRevalidatingCacheData aren't implemented on iOS so we can ignore those for now. There's another API we can borrow from and that's fetch (although it's not implemented in the what-wg polyfill). MDN says:

cache: The cache mode you want to use for the request: default, no-store, reload, no-cache, force-cache, or only-if-cached.

This is my proposed mapping:

iOS
fetch

useProtocolCachePolicy
default

reloadIgnoringLocalCacheData
reload

returnCacheDataElseLoad
force-cache

returnCacheDataDontLoad
only-if-cached

PR updated based on feedback from @oblador. Stealing the fetch API is a great idea to be platform agnostic and to give an API that people can recognize from the web. I also added some more documentation as the JSDoc in the proptype definition never makes it to the generated HTML.

LGTM 👍 @hramos & @javache?

How have you tested all four options work as documented? ImageExample.js only shows 2/4 values:

iOS
fetch (and this PR)

useProtocolCachePolicy
default

reloadIgnoringLocalCacheData
reload

returnCacheDataElseLoad
force-cache

returnCacheDataDontLoad
only-if-cached

Please add a Test Plan showing screenshots from the UIExplorer for all 4 values.
In general this looks good and useful, thanks for working on it!

Requesting changes mainly because of a missing Test Plan, see:
https://github.com/facebook/react-native/blob/master/.github/PULL_REQUEST_TEMPLATE.md

@mkonicek: Thank you for your review. I addressed your questions in comments. When it comes to the test plan I figured that if I could show the general concept working that should be enough, since all I am doing is choosing different native properties. Adding test cases for all 4 options would really just test the Apple NSURLSession code and not add any additional integrity to this PR.
The reason I am pushing back on testing of the other two methods is that it would require a custom server to actually demonstrate it, and some coordination between the server and client. Just an image hosted somewhere won't do, as the server will need to first send one image on a  URL and then send another for a subsequent request from the same client (all while setting long cache timeout headers). I wouldn't have a problem building a small node app and hosting it myself for this purpose, but I am sure you want to limit the number of corners of the internet that UIExplorer depends on. Please advice on how I can proceed.

Can this be unit tested rather than only having an example for testing?

@lacker: Is there a unit testing framework for images already in place, ie. being able to compare image A to image B? If not it feels like the infrastructure I need to invent to test it will be 10x the actual implementation :/

I don't think you would want to actually load up images into pixels and compare them, you should probably stub that out somehow. Isn't there testing for the Image component somewhere, maybe inside the UI explorer?

@lacker: Sure, but I would want to compare the byte data to see that the right image is loaded. I have looked everywhere I can think of (including the UIExplorer tests) and can't find any tests for the Image component. If there is and I can add on to that sure, but if not building a test suite for the image component seems like another PR.

I dunno, it seems reasonable to add a test as part of this one. How hard can it be? Also you would be an amazing human being, a truly impressive open source machine, bringing high quality code to the world and really pushing humanity forward.

Well when you put it that way! I'll get to it!

How are those tests going? :)

Hello @lacker @hramos. I have been trying to figure out how to integrate a proper test for this. Since it is testing native code it needs to live in IntegrationTests. However, to test the reloadIgnoringLocalCacheData and returnCacheDataElseLoad a special web-server (can be written in node) is required. I see two options in implementing this:

Host the node server externally ie. on Heroku, and access via internet. This is not a very appealing option and I'm sure wouldn't get accepted.
Change the integration test framework to allow launching a node server. How to do that in an acceptable way I'd need help with, and where in the source repo it should live. Maybe it can be started from scripts/objc-test.sh or should it be started in the xcode build steps somehow?

The third option is to remove reloadIgnoringLocalCacheData and returnCacheDataElseLoad since testing of those two options are such a pain. Let me know.

I added the most complete tests I could without spinning up a custom web server. They use https://facebook.github.io/react/img/logo_small_2x.png over the internet (got the URL from UIExplorer).

@lacker will you be able to review my last additions? Thank you!

Looks good - thanks @salanki !

Thank you @lacker!!


Create a diagnostic target for the project.

Description
Lots of folks are wondering if their setup is correct and we don't have one explicit target to just check. This adds that target and does some additional stuff.
Additionally:

Add a script to check node version.
Add a script to check available space left in docker
Update script messages

See https://docs.docker.com/docker-for-mac/faqs/#dockerraw-consumes-an-insane-amount-of-disk-space
Setup
make diagnostic

Is some of this intended to be duplicated from https://github.com/transcom/ppp-infra/blob/master/Makefile#L52?

Is some of this intended to be duplicated from https://github.com/transcom/ppp-infra/blob/master/Makefile#L52?

Yeah, its largely duplicated on purpose. I didn't want to mess with the other one and I wanted a diagnostic with no side effects - so nothing changes on running it.

do we need those?

Yeah, if you want to work with the Orders API and do CAC stuff.

else, it lists things I have installed...
I'm going to defer to someone more familiar w/ scripting for approval, but LGTM...

Yeah. It should just list stuff is ok. After prereqs it will check all your versions. Finally it checks your docker space available.


backend/extension: Introduce new extension backend

The extension backend provides an easy way for prototyping new backend types for flannel.
It is not recommended for production use, for example it doesn't have a built in retry mechanism.
This backend has the following configuration

Type (string): extension
PreStartupCommand  (string): Command to run before allocating a network to this host

The stdout of the process is captured and passed to the stdin of the SubnetAdd/Remove commands.

PostStartupCommand  (string): Command to run before allocating a network to this host

The following environment variable is set
* SUBNET - The subnet on the remote host that was added.

SubnetAddCommand   (string): Command to run when a subnet is added

stdin - The output from PreStartupCommand is passed in.
The following environment variables are set

SUBNET - The subnet on the remote host that was added.
PUBLIC_IP - The public IP of the remote host.

SubnetRemoveCommand(string): Command to run when a subnet is removed

stdin - The output from PreStartupCommand is passed in.

The following environment variables are set

SUBNET - The subnet on the remote host that was removed.
PUBLIC_IP - The public IP of the remote host.

All commands are run through the sh shell and are run with the same permissions as the flannel daemon.
Simple example (host-gw)
To replicate the functionality of the host-gw plugin, there's no need for a startup command.
The backend just needs to manage the route to subnets when they are added or removed.
An example
{
  "Network": "<IP_ADDRESS>/16",
  "Backend": {
    "Type": "extension",
    "SubnetAddCommand": "ip route add $SUBNET via $PUBLIC_IP",
    "SubnetRemoveCommand": "ip route del $SUBNET via $PUBLIC_IP"
  }
}

Complex example (vxlan)
VXLAN is more complex. It needs to store the MAC address of the vxlan device when it's created and to make it available to the flannel daemon running on other hosts.
The address of the vxlan device also needs to be set after the subnet has been allocated.
An example
{
  "Network": "<IP_ADDRESS>/16",
  "Backend": {
    "Type": "extension",
    "PreStartupCommand": "export VNI=1; export IF_NAME=flannel-vxlan; ip link del $IF_NAME 2>/dev/null; ip link add $IF_NAME type vxlan id $VNI dstport 8472 && cat /sys/class/net/$IF_NAME/address",
    "PostStartupCommand": "export IF_NAME=flannel-vxlan; export SUBNET_IP=`echo $SUBNET | cut -d'/' -f 1`; ip addr add $SUBNET_IP/32 dev $IF_NAME && ip link set $IF_NAME up",
    "SubnetAddCommand": "export SUBNET_IP=`echo $SUBNET | cut -d'/' -f 1`; export IF_NAME=flannel-vxlan; read VTEP; ip route add $SUBNET nexthop via $SUBNET_IP dev $IF_NAME onlink && arp -s $SUBNET_IP $VTEP dev $IF_NAME && bridge fdb add $VTEP dev $IF_NAME self dst $PUBLIC_IP"
  }
}

Pretty neat. Cool :)


Adding new inspectable attribute "letterSpacing".

Hi,
Really love this button. Tried a lot of other buttons out there, but I've found this one special, because of rounded borders 😉
I think buttons with letter spacings look nice and modern. So, I thought it would be handy to have it in PMSuperButton.

Super! :) Thanks for your PR, really appreciated


Implemented projects report

Gather data for later use.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


MUI-Next Website’s Drawer Navigations doesn’t work in Firefox

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior
When visiting your website a drawer navigation on the right side is provided. It consists of parent Menu Items like Geting Started, Style, Layout, etc and children Menu Items like Installation, Usage, Supported Components, etc.
Clicking on the parent Menu Items should reveal other children Menu Items. And clicking on any children Menu Item changes the content of the page.
Current Behavior
While the children Menu Items work like expected and change the content of the page the parent Menu Items don’t show any reaction when clicked.
Steps to Reproduce (for bugs)

Open Firefox
Go to your site
Click on Style
See what’s happening

Your Environment

Tech
Version

Firefox
59.0.1

macOS
10.13.3

@PDXIII I can't reproduce the issue. Do you have any error in the console.

Had no message in the console. Will try again, when I am back at my computer (tomorrow).


Add ability to specify CYPRESS_MOON_BINARY in .npmrc

Closes #11

@joachimprinzbach it seems that you incorrectly rebased your branch. There should be only 1 commit. Please rebase correctly and let's merge.

Done

@joachimprinzbach thank you for contribution!


csys for pipe system not the same as notebook

still different result by test_get_csys_from_brs_pipe from the notebook (gen_bnb_to_rel_deter_ind_pipe.ipynb)
Brs from the gen_bnb seem right though.
I guess Brs are the same between pipe_system_v2.ipynb and gen_bnb_to_rel_deter_ind_pipe.ipynb?
Any thoughts?

Have you stored the results of test_get_cys_from_brs_pipe? I tried to run it but it is taking more than an hour..

The difference comes from how 'x_n' are defined (in the for loop with c_idx). In the ipynb script, now I made pipelines in reverse direction represented by different component events because I was told that usually those pipelines are different entities.

Did you have a chance to check the Csys, the output of the test?
BNS_JT/tests/test_pipes_sys.py::test_get_cys_from_brs_pipe
[[0 2 2 ... 3 3 3]
[0 2 2 ... 3 3 3]
[0 2 0 ... 3 3 3]
...
[1 2 1 ... 5 2 3]
[1 2 1 ... 3 2 3]
[1 2 1 ... 3 2 3]]

Yes, I checked the result, and I reckon the result is correct.
The B matrix of 'x8' is [[1,0,0],[0,1,0],[0,0,1],[1,1,1],[1,1,0],[0,1,1]], so state 5 represents [0,1,1] case.

Great. Thanks.


Picom focus exclude

Should add more browsers to the exclude list, pr perhaps if it is possible to instead just include what I want to have this feature. I.e. alacritty and perhaps emacs

Added more browsers to the list


Use tar.gz instead of tar.bz2

Starting from 3.0.0-preview2, Ruby stopped shipping tar.bz2 archives. This PR changes the archive format to tar.gz for better compatibility.

Thanks!


Intermittent 404 errors with Invalid resource signature

Hello,
I've some intermittent 404 for pictures (since a long time).
Logs in pagespeed console message history :
[Thu, 20 Dec 2018 13:08:43 GMT] [Info] [4569] Need to check cache size against target<PHONE_NUMBER>
[Thu, 20 Dec 2018 13:08:44 GMT] [Info] [4569] Invalid resource signature for https://www.domain.tld/edupict/www/images/xbandeau_la_maille_images.jpg.pagespeed.ic.Not8aSW8hh5obJN_uvmC.jpg provided. Expected 8sJtkrQCNg Received 5obJN_uvmC
[Thu, 20 Dec 2018 13:08:44 GMT] [Warning] [4569] Fetch failed for https://www.domain.tld/edupict/www/images/xbandeau_la_maille_images.jpg.pagespeed.ic.Not8aSW8hh5obJN_uvmC.jpg, status=404
[Thu, 20 Dec 2018 13:08:44 GMT] [Warning] [4569] https://www.domain.tld/edupict/www/images/xbandeau_la_maille_images.jpg.pagespeed.ic.Not8aSW8hh5obJN_uvmC.jpg resource_404_count: not found (404)

Curl -I https://www.domain.tld/edupict/www/images/xbandeau_la_maille_images.jpg.pagespeed.ic.Not8aSW8hh5obJN_uvmC.jpg
HTTP/1.1 200 OK
Date: Thu, 20 Dec 2018 13:34:16 GMT
Server: Apache/2.4.37
Upgrade: h2,h2c
Connection: Upgrade
Link: <https://www.domain.tld/edupict/www/images/bandeau_la_maille_images.jpg>; rel="canonical"
Expires: Sun, 15 Dec 2019 03:34:09 GMT
Cache-Control: max-age=31536000
Etag: W/"0"
Last-Modified: Sat, 15 Dec 2018 03:34:09 GMT
X-Original-Content-Length: 19884
Content-Length: 19863
Content-Type: image/jpeg

Pagespeed conf :
ModPagespeedLoadFromFile "https://www.domain.tld/edupict/www/images/" \
                         "/home/www.domain.tld/public_html/edupict/www/images/"

To reproduce :

reload the page until a picture load gives a 404 error.
reload once again and no more 404 error

-> When the 404 error happened :
There is the "Invalid resource signature" message in logs.
-> When reload and 200 response is  given:
Picture is loaded with key that previous request said invalid.
mod_pagespeed is  <IP_ADDRESS>-0
Thanks,
Eric

ModPagespeedAcceptInvalidSignatures is to default, I think false.

Reproduced a second time for same picture :
Expected 8sJtkrQCNg Received 5obJN_uvmC
Expected is the same as in previous error.


Integration Tests

Druid requires a set of end to end integration tests to verify node interactions.
The tests should initially cover:

real-time ingestion and hand-off (using both the indexing service and standalone real-time nodes)
batch ingestion (using both the index task and hadoop index task)
querying (with and without caching)

fixed by #1017


middleware not execute

I have site with vue+nuxt+pm2
I'm new on vue+nuxt
I want such condition-if logged user open page /login then redirect to cabinet
I put to folder middleware file login.js with such content
export default function ({ route, store, redirect }) {
	console.log('login')
  if (/login/.test(route.path) && store.getters['auth/isAuthorized']) {
    redirect('/cabinet')
  }
}

then I put such code to file nuxt.config.js
module.exports = {
router: {
    middleware: ['login']
  },
  mode: 'universal',
  head,
  css,
  modules,
  env,
  router,
  plugins,
  generate,
  build,
  render,
  serverMiddleware,
  ...options
}

then run command pm2 restart id
but the code not execute, even log
what I do wrong?

I'm new with vue and nuxt, so its hard for me to Create a Minimal Reproduction
I have working site and I moved it to new server
The main  problem why I created the topic- on new server, when user go to page /login after success login, then for some reasons site crush
It's hard for me to debug and find a reason so I desiced to add condition-if user is logged and open page  /login then redirect him
i asked chatGPT and it suggest a solution with middleware but it's not worked
by the way the version nuxt is @nuxt/cli v2.9.0

@nicdnepr Your log may be executed on the server side. see the pm2 logs.


IPFS desktop on Windows 10 and Windows Subsystem for Linux (WSL) simultaneously

I've installed the IPFS desktop for Windows 10 and there is a need to enter some Linux-based scripts to run IPFS node correctly. I was suggested a solution to install Windows Subsystem for Linux (WSL) to be able to run these scripts.
I've installed WSL, and now if to enter the WSL terminal, the 'ipfs' is not recognized as it is not installed.
Do I need also to install IPFS to the WSL separately? And then enter a path to the existing repo?
I'm afraid to try to install it, that could possibly damage existing Windows installation.
Is there a correct way to run IPFS in Windows machine and WSL simultaneously?

I've figured that out. Just anyone need it.
I need to additionally install Kubo for go in WSL. Instructions for Linux
In my case it was (in WSL):
wget https://dist.ipfs.tech/kubo/v0.19.1/kubo_v0.19.1_linux-amd64.tar.gz
tar -xvzf kubo_v0.19.1_linux-amd64.tar.gz
cd kubo
sudo bash install.sh
then I need to change the repo path to existing one:
to do this, edit the .bashrc or .profile (I don't know which one is more correct to edit, buth both works) file by adding IPFS_PATH
(In my case it was D:\IPFS\.ipfs\) environmental variable with any editor, for example vim:
vim ~/.bashrc or vim ~/.profile
use arrow key to go to bottom and add this line at the end:
IPFS_PATH="/mnt/d/IPFS/.ipfs"; export IPFS_PATH
press escape, type
:wq
and press enter to save and exit.
if you want the changes to take place immediately, type
source ~/.bashrc
to load it into the current shell
type
ipfs init
Moreover, starting of IPFS daemon in WSL solved the problem of random daemon quiting with ipfs : panic: expected chan in accept muxer message.

just another newbie instruction:
to update Kubo in WSL one need install ipfs-updater
change directory to user's [username]:
cd /home/[username]
then install lastest version, in my case it was 1.9.0:
wget https://dist.ipfs.tech/ipfs-update/v1.9.0/ipfs-update_v1.9.0_linux-amd64.tar.gz
tar -xvzf ipfs-update_v1.9.0_linux-amd64.tar.gz
cd ipfs-update
sudo bash install.sh
ipfs-update --version
if installed correctly run
sudo ipfs-update install latest
in my case I need to run it several times, as there were some errors in downloading.


Random memory initialization generates out of bounds address

A read from a non-power of two memory can be initialized with an address that is out of the range of the memory. In vcs this results in an X output, potentially propagating throughout the rest of your design.
This showed up in one of the queues in the outer memory system of rocket-chip.
relevant firrtl looking like:
cmem ram : {client_xact_id : UInt<7>, addr_beat : UInt<2>, client_id : UInt<3>, is_builtin_type : UInt<1>, a_type : UInt<3>}[5]
...
infer mport T_326 = ram[T_274], clk

output verilog
assign ram_addr_beat_T_326_addr = T_274;
...
assign ram_addr_beat_T_326_data = ram_addr_beat[ram_addr_beat_T_326_addr];
...
initial begin
...
T_274 = {1{$random}};

I guess it could be emitted as something like
`ifdef SYNTHESIS
  assign rdata = mem[raddr];
`else
  assign rdata = raddr >= n ? {1{$random}} : mem[raddr];
`endif

Andrew and I talked a bit about this, we think the right way to deal with it is to create a temporary node that is assigned the read data if the address is within range, garbage otherwise (through a validIf construct). Then all references to the read data are replaced with this node. eg:
    node readOutData = mem.reader.data

->
    node GEN_N = validif(lt(mem.reader.addr, UInt(MEM_SIZE)), mem.reader.data)
    node readOutData = GEN_N

If we do this strategy, then note that it is no longer legal to replace ValidIf(p, e) with e. I think this is ok, and the RemoveValidIf pass should replace ValidIf(p,e) with Mux(p,e,UInt(0)) (or something like that).

Hmm, Mux(p,e,0) will add a whole bunch of hardware in some cases. Let's not
do that.
On Wednesday, May 4, 2016, Adam Izraelevitz<EMAIL_ADDRESS>wrote:

If we do this strategy, then note that it is no longer legal to replace
ValidIf(p, e) with e. I think this is ok, and the RemoveValidIf pass should
replace ValidIf(p,e) with Mux(p,e,UInt(0)) (or something like that).
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/ucb-bar/firrtl/issues/155#issuecomment-216998700

Then perhaps we should not remove ValidIfs, and just emit them in Verilog like:
node GEN_N = validif(lt(mem.reader.addr, UInt(MEM_SIZE)), mem.reader.data)
becomes
`ifdef SYNTHESIS
  assign GEN_N = mem_reader_data;
`else
  assign GEN_N = mem.reader.addr < MEM_SIZE ? {1{$random}} : mem_reader_data;
`endif

I'm actually a little disinclined to change the ValidIf behavior in all cases... the status quo is working fine in practice, and doing this on all ValidIfs will result in a significant simulation performance hit.  And Verilog simulation is already painfully slow.
Maybe we should just special-case this for Mems.
In either case, it's a little tricky to do this in such a way as to avoid introducing lint errors.  Might have to do something like
`ifndef SYNTHESIS
  wire [31:0] GEN_N = {1{$random}};
  assign GEN_K = mem.reader.addr < MEM_SIZE ? GEN_N[15:0] : mem_reader_data;
`else
  assign GEN_K = mem_reader_data;
`endif

to avoid a width warning in the not-SYNTHESIS case and to avoid an unused wire warning in the SYNTHESIS case.

I think that solution is fine, but shouldn't we do this for all validifs? What does validif even mean if we're not actually putting garbage data when the condition is false?

I think it should be a compiler option for the behavior of validif, because it is a tradeoff between performance and robustness that is within the legal spec. As such,

Or emit it with a separate `ifdef guard (e.g. RANDOMIZE_DISCONNECTED_NETS).
But the memory case should not be handled by the same ifdef, because in neither case should we introduce 'x into the simulation.  That one should probably be ifdef SYNTHESIS.

There is a commit on the bringup-hwacha branch that fixes this
https://github.com/ucb-bar/firrtl/commit/fbc396e2cf42505c76188666153373471f98b00c


Fuse bias and activations into conv2d and depthwise conv2d

@huningxin, cherry pick to webnn-delegate-tfjs-tflite-node branch. PTAL, thanks!


Add !ownsALL command PLEASE

Add !ownsALL command PLEASE

Why? You have keys forwarding feature that automatically sends key to bot that doesn't own given package. What !ownsall achieves?

cooldown


[W5.7][W10-3] Wang YaoFeng

// LO comments
Good job on adding encapsulation to improve code reuse. It willl greatly help all of us.


How to use styled-vanilla-extract in a qwik package?

I tried to create an UI package with your styled-vanilla-extract. For that I kickoff the Qwik "component library" starter project. But when I use it in a qwik application the css is not working and the css is not loaded.
The styling is working when I put my styled-vanilla-extract component inside the qwik application directly.
Do you have a clue how to fix?

I close this request and follow up in qwik discord help channel.


No menu bar on Linux, shortcut keys not working

I can't see the menu bar on Arch Linux and the shortcut keys are also not working (Alt+F, Alt+A, etc.), even though they are indeed preceded by '&' in the messages. Am I simply doing something wrong or is this a bug?
I'm using bspwm as my window manager if that has anything to do with it. I can use the menu bar just fine in other applications but I'm not sure if I've come across other programs that use PySide/Qt4 with a menu bar.

I don't know what I did but it shows up just fine now.


bot framework - web chat - uploading attachment with Arabic name

Hi All,
I am using the default web chat from Microsoft and I have noticed while uploading an attachment with Arabic name that the upload API failed

any idea? how to fix this issue?

This issue had been already fixed, please try again.


[BUG] github actions RPM job is failing to install some packages

error seems consistent and is failing in multiple PRs, from the logs it looks like its failing to installing build dependencies, it is using the quay.io/centos/centos:stream8 image.
> [3/6] RUN yum -y install git-core rpm-build dnf-plugins-core 'dnf-command(builddep)'         https://github.com/crc-org/admin-helper/releases/download/v0.5.2/crc-admin-helper-0.5.2-1.el8.x86_64.rpm 	https://github.com/crc-org/machine-driver-libvirt/releases/download/0.13.7/crc-driver-libvirt-0.13.7-1.el8.x86_64.rpm:
0.618 CentOS Stream 8 - AppStream                     132  B/s |  38  B     00:00
0.623 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
------
Containerfile:3
--------------------
  2 |     WORKDIR $APP_ROOT/src
  3 | >>> RUN yum -y install git-core rpm-build dnf-plugins-core 'dnf-command(builddep)' \
  4 | >>>         https://github.com/crc-org/admin-helper/releases/download/v0.5.2/crc-admin-helper-0.5.2-1.el8.x86_64.rpm \
  5 | >>> 	https://github.com/crc-org/machine-driver-libvirt/releases/download/0.13.7/crc-driver-libvirt-0.13.7-1.el8.x86_64.rpm
  6 |     COPY . .
--------------------
ERROR: failed to solve: process "/bin/sh -c yum -y install git-core rpm-build dnf-plugins-core 'dnf-command(builddep)'         https://github.com/crc-org/admin-helper/releases/download/v0.5.2/crc-admin-helper-0.5.2-1.el8.x86_64.rpm \thttps://github.com/crc-org/machine-driver-libvirt/releases/download/0.13.7/crc-driver-libvirt-0.13.7-1.el8.x86_64.rpm" did not complete successfully: exit code: 1

Can you check it locally if this works or failing?

it fails locally too, its beacuse we are using the centos:stream8 image, cetnos stream 8 is EOL https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/


regression on index

🌟 Feature Description

希望Operator.Slope等能支持对指定Index或者其他时间序列的回归。
增加T-value operator。

Motivation

Application scenario
Related works (Papers, Github repos etc.):
Any other relevant and important information:

Alternatives

Additional Notes

...
I just find out PR means Pull Request in Git, but I don't even know how to use Git, let alone coding. I wish I could, but I just can't.


Package generation fails in Ubuntu using Node.js v18

The issue I am having is quite peculiar, in certain Ubuntu installations open-next package fails to compile with the following bizarre error during the server function generation,
┌──────────────────────────────┐
│ OpenNext — Generating bundle │
└──────────────────────────────┘

Bundling static assets...
Bundling cache assets...
Bundling server function...
✘ [ERROR] Could not resolve "@aws-sdk/client-dynamodb"

    node_modules/open-next/dist/adapters/server-adapter.js:2:31:
      2 │ import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
        ╵                                ~~~~~~~~~~~~~~~~~~~~~~~~~~

  The Yarn Plug'n'Play manifest forbids importing "@aws-sdk/client-dynamodb" here because it's not
  listed as a dependency of this package:

    ../../.pnp.cjs:86:31:
      86 │         "packageDependencies": [\
         ╵                                ~~

  You can mark the path "@aws-sdk/client-dynamodb" as external to exclude it from the bundle, which
  will remove this error.

✘ [ERROR] Could not resolve "@aws-sdk/client-s3"

    node_modules/open-next/dist/adapters/server-adapter.js:3:25:
      3 │ import { S3Client } from "@aws-sdk/client-s3";
        ╵                          ~~~~~~~~~~~~~~~~~~~~

  The Yarn Plug'n'Play manifest forbids importing "@aws-sdk/client-s3" here because it's not listed
  as a dependency of this package:

    ../../.pnp.cjs:86:31:
      86 │         "packageDependencies": [\
         ╵                                ~~

  You can mark the path "@aws-sdk/client-s3" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@aws-sdk/client-sqs"

    node_modules/open-next/dist/adapters/plugins/routing/util.js:1:46:
      1 │ import { SendMessageCommand, SQSClient } from "@aws-sdk/client-sqs";
        ╵                                               ~~~~~~~~~~~~~~~~~~~~~

  The Yarn Plug'n'Play manifest forbids importing "@aws-sdk/client-sqs" here because it's not listed
  as a dependency of this package:

    ../../.pnp.cjs:86:31:
      86 │         "packageDependencies": [\
         ╵                                ~~

  You can mark the path "@aws-sdk/client-sqs" as external to exclude it from the bundle, which will
  remove this error.

/home/myuser/open-next-project/node_modules/esbuild/lib/main.js:1649
  let error = new Error(text);
              ^

Error: Build failed with 3 errors:
node_modules/open-next/dist/adapters/plugins/routing/util.js:1:46: ERROR: Could not resolve "@aws-sdk/client-sqs"
node_modules/open-next/dist/adapters/server-adapter.js:2:31: ERROR: Could not resolve "@aws-sdk/client-dynamodb"
node_modules/open-next/dist/adapters/server-adapter.js:3:25: ERROR: Could not resolve "@aws-sdk/client-s3"
    at failureErrorWithLog (/home/myuser/open-next-project/node_modules/esbuild/lib/main.js:1649:15)
    at /home/myuser/open-next-project/node_modules/esbuild/lib/main.js:1058:25
    at /home/myuser/open-next-project/node_modules/esbuild/lib/main.js:1003:52
    at buildResponseToResult (/home/myuser/open-next-project/node_modules/esbuild/lib/main.js:1056:7)
    at /home/myuser/open-next-project/node_modules/esbuild/lib/main.js:1085:16
    at responseCallbacks.<computed> (/home/myuser/open-next-project/node_modules/esbuild/lib/main.js:703:9)
    at handleIncomingPacket (/home/myuser/open-next-project/node_modules/esbuild/lib/main.js:762:9)
    at Socket.readFromStdout (/home/myuser/open-next-project/node_modules/esbuild/lib/main.js:679:7)
    at Socket.emit (node:events:517:28)
    at addChunk (node:internal/streams/readable:335:12) {
  errors: [Getter/Setter],
  warnings: [Getter/Setter]
}

Node.js v18.18.2

Package.json is as follows,
{
  "name": "open-next-project",
  "version": "1.5.12",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "package": "open-next build",
    "start": "next start",
    "analyze": "ANALYZE=true yarn build",
    "test": "jest --watch",
    "test:ci": "jest --ci",
    "type-check": "tsc --noEmit",
    "lint:eslint": "next lint --max-warnings=0",
    "lint:prettier": "prettier --ignore-unknown -w --check src/",
    "deploy": "serverless",
    "deploy-storybook-to": "aws s3 sync storybook-static/",
    "storybook": "start-storybook -p 6006 -s ./public",
    "build-storybook": "build-storybook -s ./public",
    "bump": "node bump.mjs"
  },
  "dependencies": {
    "@apollo/client": "^3.5.10",
    "@auth0/auth0-spa-js": "^2.1.2",
    "@babel/runtime": "^7.18.3",
    "@metamask/onboarding": "^1.0.1",
    "@picmo/popup-picker": "^5.7.2",
    "@segment/snippet": "^4.15.3",
    "@sentry/nextjs": "^7.56.0",
    "@stripe/stripe-js": "^1.35.0",
    "@types/lodash-es": "^4.17.6",
    "@walletconnect/client": "^1.7.7",
    "@walletconnect/qrcode-modal": "^1.7.7",
    "@walletconnect/web3-provider": "^1.7.7",
    "a11y-react-emoji": "^1.2.0",
    "alchemy-sdk": "^2.2.0",
    "axios": "^1.3.4",
    "axios-retry": "^3.4.0",
    "color": "^4.2.3",
    "d3": "3",
    "d3v7": "npm:d3@7",
    "date-fns": "^2.28.0",
    "dayjs": "^1.11.0",
    "dompurify": "^3.0.1",
    "formik": "^2.2.9",
    "graphql": "^16.3.0",
    "humps": "^2.0.1",
    "immutability-helper": "^3.1.1",
    "is-github-url": "^1.2.2",
    "lodash-es": "^4.17.21",
    "lottie-react": "^2.4.0",
    "mathjs": "^10.6.1",
    "next": "12.3.2",
    "notificationapi-js-client-sdk": "^4.3.1",
    "numeral": "^2.0.6",
    "open-next": "^2.3.1",
    "parse-github-url": "^1.0.2",
    "picmo": "^5.7.2",
    "react": "17.0.2",
    "react-color": "^2.19.3",
    "react-content-loader": "^6.2.0",
    "react-day-picker": "^8.0.5",
    "react-dnd": "^15.1.2",
    "react-dnd-html5-backend": "^16.0.1",
    "react-dnd-multi-backend": "^8.0.0",
    "react-dnd-touch-backend": "^16.0.1",
    "react-dom": "17.0.2",
    "react-flexbox-grid": "^2.1.2",
    "react-google-autocomplete": "^2.7.0",
    "react-icons": "^4.3.1",
    "react-infinite-scroll-hook": "^4.0.3",
    "react-scroll": "^1.8.6",
    "react-tippy": "^1.4.0",
    "react-toastify": "^9.0.5",
    "react-waypoint": "^10.1.0",
    "remark": "^14.0.2",
    "remark-emoji": "^3.0.2",
    "semantic-ui-css": "^2.4.1",
    "semantic-ui-react": "^2.1.2",
    "strip-markdown": "^5.0.0",
    "stripe": "^10.2.0",
    "styled-components": "^5.3.5",
    "swiper": "^9.1.1",
    "swr": "^2.1.3",
    "tinycolor2": "^1.4.2",
    "typesense": "^1.3.0",
    "ua-parser-js": "^1.0.35",
    "use-file-upload": "^1.0.11",
    "walletlink": "^2.5.0",
    "web3": "^1.8.1",
    "yup": "^0.32.11"
  },
  "devDependencies": {
    "@babel/core": "^7.17.9",
    "@next/bundle-analyzer": "^13.5.4",
    "@storybook/addon-actions": "^6.4.20",
    "@storybook/addon-essentials": "^6.4.20",
    "@storybook/addon-interactions": "^6.4.20",
    "@storybook/addon-links": "^6.4.20",
    "@storybook/builder-webpack5": "^6.4.20",
    "@storybook/manager-webpack5": "^6.4.20",
    "@storybook/react": "^6.4.20",
    "@svgr/webpack": "^6.2.1",
    "@types/auth0-js": "^9.14.6",
    "@types/dompurify": "^2.4.0",
    "@types/humps": "^2.0.2",
    "@types/is-github-url": "^1.2.0",
    "@types/jest": "^27.4.1",
    "@types/node": "17.0.23",
    "@types/numeral": "^2.0.2",
    "@types/parse-github-url": "^1.0.0",
    "@types/react": "17.0.43",
    "@types/segment-analytics": "^0.0.34",
    "@types/styled-components": "^5.1.24",
    "@types/ua-parser-js": "^0.7.36",
    "@typescript-eslint/eslint-plugin": "^5.27.0",
    "@typescript-eslint/parser": "^5.27.0",
    "babel-loader": "^8.2.4",
    "enzyme": "^3.11.0",
    "enzyme-adapter-react-16": "^1.15.6",
    "enzyme-to-json": "^3.6.2",
    "eslint": "8.11.0",
    "eslint-config-next": "12.1.0",
    "husky": "4",
    "inquirer": "^9.1.4",
    "jest": "^27.5.1",
    "jest-styled-components": "^7.0.8",
    "lint-staged": "^12.3.7",
    "prettier": "^2.6.1",
    "serverless": "2.72.3",
    "storybook-addon-next": "^1.6.2",
    "typescript": "4.6.3",
    "webpack": "^5.76.0"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged && yarn type-check && yarn lint:eslint && yarn test:ci"
    }
  },
  "lint-staged": {
    "**/*": "prettier --write --ignore-unknown",
    "*.{js,css,md,jsx,tsx,ts}": "prettier --write"
  },
  "packageManager"<EMAIL_ADDRESS>}

In MacOS using the exact same config and commands it works. I have reinstalled everything, npm, Node.js, node_modules the usual stuff to no avail.
Does anyone have any idea why this fails to build? Happy to provide more info wrt to the project, in case that's needed....

Do guys have solution ? I got this issues too.

This is an issue with yarn pnp.
One easy fix would be to not use pnp
If you need it, you may want to take a look at this https://github.com/evanw/esbuild/issues/2495#issuecomment-1227269139 or experiment with some of the pnp options


Parallel.For in benchmark

When Parallel.For() is used in a benchmark, there is only 12% usage of 8x cores CPU by whole process, because of priority of the test thread which is set in Prepare() method: Thread.CurrentThread.Priority = ThreadPriority.Highest. Outside of a Benchmark Parallel.For() uses up to 100% of CPU on all cores.

Windows is known to be fairly good at scheduling. So at least on Windows and  by default the benchmark process should not be affinitized.  If there are other high priority threads - affinitized to the same core  or just happen to be scheduled on it -  the benchmark process will suffer because Windows won't schedule it on another free core.

It is interesting. @mattwarren, what do you think?

Sorry, I'm no expert on multi-threading and thread affinity.
Maybe we can measure it, although I'm not sure what type of metrics we need to look for, is there such as thing as "Thread Scheduling Events"?

Sorry, I'm no expert on multi-threading and thread affinity.

Me neither )
We can try to run another process (or a few of them) with the same high priority.

In v0.9.0, the processor affinity is an optional property of each job.


Refactor/eslint

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Can we start re-adding tags for new releases?

Hi bryankeller , I was trying to integrate this on our project via SPM but instead of pointing to a commit or branch point to a version, but I noticed there's none since january.. Would it be possible to get back to release tagging?
Thanks for the project.
Regards

I'm aiming to tag a new release in the next couple of weeks. For now, you can just point SPM / Cocoapods / Carchate to the latest commit hash, instead of a version tag. The next release is going to be 2.0.0, which includes many enhancements, but also some breaking API changes if folks haven't moved off of deprecated APIs in a while.

Thanks! :D


Bump the AngularJS version so the module can install angular 1.4

The tests do run with angular 1.4, so this should be painless.

Thanks! Can you follow the commit guidelines please? https://github.com/passy/angular-masonry#contributing

I've rewritten the commit message to match the format

Perfect, thank you!

Great :) Will you release that new version now?
On Wed, Sep 9, 2015 at 12:15 PM, Pascal Hartig<EMAIL_ADDRESS>wrote:

Merged #128 https://github.com/passy/angular-masonry/pull/128.
—
Reply to this email directly or view it on GitHub
https://github.com/passy/angular-masonry/pull/128#event-404657146.

Done! :sake:


add self update option

Proposed Changes
UPDATE:
   -up, -update                 update cloudlist to the latest version
   -duc, -disable-update-check  disable automatic update check

Reference

Reference: https://github.com/projectdiscovery/tlsx/blob/8038ac06765d490210aa8bf753f44758a653b39f/cmd/tlsx/main.go#L125

➜  cloudlist git:(issue-311-add-self-update-option) ✗ ./cloudlist -up

   ________                _____      __
  / ____/ /___  __  ______/ / (_)____/ /_
 / /   / / __ \/ / / / __  / / / ___/ __/
/ /___/ / /_/ / /_/ / /_/ / / (__  ) /_
\____/_/\____/\__,_/\__,_/_/_/____/\__/  v1.0.2

                projectdiscovery.io

Use with caution. You are responsible for your actions
Developers assume no liability and are not responsible for any misuse or damage.
13.21 MiB / 13.21 MiB [------------------------------------------------------] 100.00% 32.92 MiB p/s

[INF] cloudlist sucessfully updated 1.0.1 -> 1.0.2 (latest)

  ## What's Changed

  • Added environment variables support into provider config by @parrasajad in
  https://github.com/projectdiscovery/cloudlist/pull/257

    - provider: aws
      aws_access_key: $AWS_ACCESS_KEY
      aws_secret_key: $AWS_SECRET_KEY

  • Updated helper libraries #245 by @edoardottt in
  https://github.com/projectdiscovery/cloudlist/pull/246

  ## New Contributors

  • @edoardottt made their first contribution in
  https://github.com/projectdiscovery/cloudlist/pull/246

  Full Changelog:
  https://github.com/projectdiscovery/cloudlist/compare/v1.0.1...v1.0.2


Library has transitive dependency on vulnerable System.Text.Encodings.Web package

The Smidge.InMemory project has a reference to Dazinator.Extensions.FileProviders and a colleague recently mentioned that it has a transitive dependency on the vulnerable version of System.Text.Encodings.Web. Here's an image showing the dependency chain:

I think it should be a simple fix to just include an explicit reference to the 5.0.1 non-vulnerable version but I think this package is also built to cross compile for netframework too so might need that reference in a couple places.
I've update the Smidge.InMemory project to have the explicit reference but just wanted to report this here too.

Thanks for letting me know, will address this at some point!

Thinking on it a little more, dependency versions specified in a nuspec represent a version constraint on compatible versions of the dependency, so in this case this library just stipulates it needs the consumer to have atleast version 5.0.0 as the "minimum compatible version" of the dependency. I don't think I should bump this compatible version for a patch fix that doesn't effect binary compatibility, because consumers are free to keep their package dependencies up to date for their application using the nuget package manager or any other mechanism they see fit and this package doesn't prevent that. I don't think it's intended in nuget ecosystem for a new patch release of package (in this case 5.0.1) to necessitate in all downstream dependents having to bump their dependency version when binary compatibility is unaffected - as that kind of makes compatibility version constraints in a nuspec file almost redundant and increases the maintaining of all package authors in that dependency graph - I'll update my package, then consumers of my package have to update their packages etc etc all because a dependency at the bottom has an update. So based on that principle - I don't think I should actually do anything here as I think it would be wrong in principle based on how nuget works!

fair enough

Thanks though. If it becomes a bigger problem for some reason let me know and I'll reconsider.


test-branch/execute-job/quoted-authorization/1a499e67-c1db-42e4-9739-673f71e99c66

PR for testing 71a484ca2442e30ae0b7596849c39b27079cbaa6

/canonical/self-hosted-runners/run-workflows 71a484ca2442e30ae0b7596849c39b27079cbaa6


Update README.md - Optional properties

Documentation states:
showruler - turns on and off a display of the ruler control. Values can be "true" or "false". - {"command":{"showruler":true}}

The command is wrong its missing key 'ruler'
see RedMap/worldmap/worldmap.js line 2280-2281:
if (cmd.hasOwnProperty("ruler")) {
        if (cmd.ruler.hasOwnProperty("showruler")) {

Also, some Optional properties that users can use were not described in the documentation.
Added showmenu and showlayers so users can know about the functionality

Excellent - thanks for the PR.


Add web-vitals measuring and event tracking

See https://trello.com/c/CwE3us86/844-performance-add-reporting-of-fcp-to-google-analytics

Looks like the events are getting sent to Analytics (from the test deployment on vercel)


mediawiki/msg-doc doesn't accept valid docs with 1 entry

The plugin blocks my patch with "All possible message keys should be documented". But I documented everything:
// The following messages are used here:
// * advancedsearch-sort-*
var msg = mw.message( 'advancedsearch-sort-' + name.replace( /_/g, '-' ) );

(from https://gerrit.wikimedia.org/r/c/mediawiki/extensions/AdvancedSearch/+/627230/6/modules/ui/ext.advancedSearch.SortPreference.js#15)
It appears like the plugin assumes a list with 1 entry must be wrong: https://github.com/wikimedia/eslint-plugin-mediawiki/blob/master/src/utils.js#L54. But this is the full list. There is nothing more to say at this point.
Adding something like * … just to silence the error doesn't work either: https://github.com/wikimedia/eslint-plugin-mediawiki/blob/master/src/utils.js#L13.
Can we please relax the plugin and make it accept a single list entry?

If you can't list complete message keys, then just add an inline ignore for the rule. The comment used in the example above isn't of much use as it doesn't make the message keys any more grep-able ("advancedsearch-sort-" as a string already exists, and "advancedsearch-sort-myname" is still not grep-able).

Maybe that wasn't a good example. What if there really is only a single message? At least for the moment? How is this a violation?

That would be a valid case, but as you say that is a temporary situation (and I think pretty rare). I would just use something like:
// The following messages are used here:
// * sort-name
// * TODO: other sort modes to be supported
$foo.addClass( 'sort-' + x );

or just use a disable directive (along with the single item list). Once the list expands to two items, eslint will detect that the disabled directive is not required.

I don't know if it's "temporary". The sniff is useful. But what I don't get is why it needs to decide that 2 entries are valid, but 1 is not? What is the benefit of this additional constraint? How does it help? How often does this happen, and how often is it an error and not intentional as in my situation?

I think instinctively, it feels like needless complexity (indirection, abstraction) for something to appear variable when it truly isn't. This isn't always wrong for its own sake of course, but I don't recall having seen this it in a situation where I didn't find it to be part of a larger code smell.
Short of this happening at least once, it might be beneficial for now to have this rule be simpler, and I could even see it as useful to have that little tiny bit of resistence to think if maybe there's a different way to solve this, or if not, to simply inline disable it and possibly report back here.

I found a solution I can live with: I listed all messages that currently exist, and a placeholder to highlight the fact that it's not limited to this list.
// The following messages are used here:
// * advancedsearch-sort-relevance
// * advancedsearch-sort-*

I found a solution I can live with: I listed all messages that currently exist, and a placeholder to highlight the fact that it's not limited to this list.
// The following messages are used here:
// * advancedsearch-sort-relevance
// * advancedsearch-sort-*

I think this is better than allowing just one entry in the list, because that might be because the developer forgot to list the others. I propose to decline this task in favor of using this solution instead.

Here is another example where the sniff is just not helpful. Apparently I'm not even allowed to make my comment explain why it doesn't make sense to have a list. Not even when I obey the rule that I must list two things. What is this trying to protect me from?

Here is another example where the sniff is just not helpful. Apparently I'm not even allowed to make my comment explain why it doesn't make sense to have a list. Not even when I obey the rule that I must list two things. What is this trying to protect me from?

I believe it has already been explained what the rule protects you from.

ve.ui.MWIncludesContextItem.prototype.getLabelMessage = function () {
    var key = {
        'mw:Includes/NoInclude': 'visualeditor-includes-noinclude-start',
        'mw:Includes/NoInclude/End': 'visualeditor-includes-noinclude-end',
        'mw:Includes/OnlyInclude': 'visualeditor-includes-onlyinclude-start',
        'mw:Includes/OnlyInclude/End': 'visualeditor-includes-onlyinclude-end',
        'mw:Includes/IncludeOnly': 'visualeditor-includes-includeonly'
    }[ this.model.getAttribute( 'type' ) ];
    // The following messages are used here:
    // * visualeditor-includes-*
    // * (see above)
    return key ? mw.message( key ).text() : '';

I think the above example is unrelated to the example this issue was created for. This example is variable, and there are multiple messages. This is what eslint-disable-next-line is for.  The warning is understood by the developer and the risk is either accepted, or addressed in another way already. I don't think it warrants an inline explanation.

There is no need to document the message strings in this example as they are already written out in full in the lines above. The purpose of this rule is to try to encourage message strings to be written out in full near the code that uses them, so someone searching the code for a message string will find it.
In this case I would recommend the following comment above the return:
// Message keys already documented above
// eslint-disable-next-line mediawiki/msg-doc


grabbing number of 'Titles Viewed In Queue'

how can I grab number of 'Titles Viewed In Queue' (showed here: http://store.steampowered.com/explore/) and show this number in nodejs console?

I don't believe there is an API endpoint for such info. What you can do is maybe load it via Cheerio or similar library and then parse out the info you need. But I may be wrong about the API endpoint not exisiting.

OK, I will take a look, thanks for advice.


make some typedlist C-APIs public

Hi. I make some typedlist C-APIs public, since I want to use typedlist C-APIs in my C++ code, which will be called from jitted numba code, via intrinsic, lower_builtin, and etc.
At least, (I feel) I need new, free, get_length, setitem, and getitem APIs. I hope this PR won't bother other parts in numba or the design principle of Numba. If not, please shout.
I mark this PR as a draft, when I finish my extension and test it, then I will mark this as an official PR.

The consensus from the dev meeting on 2022-10-18 was that it's OK to make these APIs public, as long as it's documented that they're not supported / stable, and the interfaces or implementation could be changed in future without notice. So with some documentation of them not being supported / stable, this PR should be OK to merge.

Notes: https://hackmd.io/SXbcwPbCSwKgo4i52XH5zw

Sorry, I hit the wrong button and closed the PR.

The consensus from the dev meeting on 2022-10-18 was that it's OK to make these APIs public, as long as it's documented that they're not supported / stable, and the interfaces or implementation could be changed in future without notice. So with some documentation of them not being supported / stable, this PR should be OK to merge.

I think "changed OR removed in future without notice" may better cover the potential liability associated with their use?

Thanks, I've already made some changes in docs/header comments/codes, following your suggestions. Can begin to review.

The only other thought I have is whether the exported symbols should have protected visibility just for additional safety (though this may be excessive). Do you have a view on this @gmarkall ?

It's not clear to me how that would make anything safer - can you elaborate?

The only other thought I have is whether the exported symbols should have protected visibility just for additional safety (though this may be excessive). Do you have a view on this @gmarkall ?

It's not clear to me how that would make anything safer - can you elaborate?

From OOB discussion, conclusion is that it probably makes insufficient difference.
However, as part of this discussion, it was noted that the "default" behaviour in relation to symbol export varies across platforms and that it would be a good idea to ensure that symbols are exported consistently. For example, I think this patch as of ac31d64 will result in some typed list symbols being global on unix systems, but on windows I think they will need explicitly exporting to achieve the same. Thoughts?

I think the default visibility on OS X / Linux was already fine - on Windows I think __declspec(dllexport) is needed: https://learn.microsoft.com/en-us/cpp/build/exporting-from-a-dll-using-declspec-dllexport?view=msvc-170

I think the default visibility on OS X / Linux was already fine - on Windows I think __declspec(dllexport) is needed: https://learn.microsoft.com/en-us/cpp/build/exporting-from-a-dll-using-declspec-dllexport?view=msvc-170

Cool, I should revise it again based on this info.

@stuartarchibald Are you happy with this PR at this point?

@stuartarchibald Are you happy with this PR at this point?

I think what is now present makes the exporting of declared symbols as globally visible consistent across platforms, thanks for addressing this @dlee992.


Inconsistent JSON.STRLEN: Error message inconsistent when no path is provided

Please note this issue is created while reviewing #1049 which resolves #777.
The error message needs to be formatted according to the type of the object.
Expected:
<IP_ADDRESS>:6379> json.set user:99 $ '{"name":"Bhima", "age":10}'
OK
<IP_ADDRESS>:6379> json.strlen user:99
(error) WRONGTYPE wrong type of path value - expected string but found object

Observed output
The observed output when the above set of commands when run on DiceDB
<IP_ADDRESS>:7379>  json.set user:99 $ '{"name":"Bhima", "age":10}'
OK
<IP_ADDRESS>:7379> json.strlen user:99
(error) WRONGTYPE wrong type of path value - expected string but found integer

Expectations for resolution
This issue will be considered resolved when the following things are done

changes in the dice code to meet the expected behavior
addition of relevant test case to ensure we catch the regression

You can find the tests under the integration_tests directory of the dice repository and the steps to run are in the README file. Refer to the following links to set up DiceDB and Redis 7.2.5 locally

setup DiceDB locally
setup Redis 7.2.5 locally
setup DiceDB CLI

@apoorvyadav1111  Assign it to me i am anyway working on the docs too


UniCodeWarning for Django package

building my site on OS X gives me the following django related warning:
/Library/Python/2.7/site-packages/django/template/smartif.py:103: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  '!=': infix(10, lambda context, x, y: x.eval(context) != y.eval(context)),

consider updating django?

Not entirely sure updating Django would solve your issue here. Do you have the template code that generated the warning? This issue is probably due to comparing a unicode string with a regular str (the latter might be an internal string coming from Cactus).
Note that Cactus now supports Python 3, updating to Python 3 might solve that problem (since the internal strings would be unicode).

Everything is fine. Just noticed a german umlaut in a template name. Sorry!


target achieved not detected

Just happened with at on w21-24, not sure what happened. Nothing in log

also on w21-25??? what is going on

now happening basically every time


[Feature][install] DolphinScheduler Cloudera Manager parcel

At present, most companies use Ambari or Cloudera Manager to manage their big data platform, We already have the ambari plug-in for dolphinscheduler, We need to make a cloudera manager parcel for dolphinscheduler now. Which will help companies that use CDH to better install, deploy and manage Dolphinscheduler clusters.

I like this Feature

I can't find it where parcel is?


Installation issue

Method Livewire\Features\SupportConsoleCommands\Commands\UpgradeCommand::addThirdPartyUpgradeStep does not exist.
I receive the issue above when trying to install the latest version of this package with the latest version of the livewire 3 beta. My install has been migrated from livewire 2.
When I remove this package composer update starts working again
Any thoughts appreciated

Please update to the latest version of the Livewire beta.


Check for JIRA issues mentioned in title & commits

All JIRA issues between in title must be matched on JIRA issues in commits and vice versa. Otherwise a failed format check should be raised.
Note: multiple commits with same JIRA issue might occur and multiple JIRA issues in the same commit might occur.

Duplicate of #102 I believe


Fixed incorrect loose list (#65)

This pull request fixes the issue mentioned in #65.
Markdown:
* Foo

1. Bar

Before:

Foo

Bar

After:

Foo

Bar

Coverage increased (+0.008%) to 93.168% when pulling fb0f03d056f51cd6d0822bb397008d13841be934 on MrVallentin:master into 846a419bcb83afab02f3f19d151ab0166fab68f6 on miyuchina:master.

Coverage increased (+0.008%) to 93.168% when pulling fb0f03d056f51cd6d0822bb397008d13841be934 on MrVallentin:master into 846a419bcb83afab02f3f19d151ab0166fab68f6 on miyuchina:master.

Coverage increased (+0.008%) to 93.168% when pulling fb0f03d056f51cd6d0822bb397008d13841be934 on MrVallentin:master into 846a419bcb83afab02f3f19d151ab0166fab68f6 on miyuchina:master.

Coverage increased (+0.008%) to 93.168% when pulling fb0f03d056f51cd6d0822bb397008d13841be934 on MrVallentin:master into 846a419bcb83afab02f3f19d151ab0166fab68f6 on miyuchina:master.

Moved the check into List.read, as it seems more fitting to be part of the parsing stage instead.


Fix error type for latest rust nightly

I'm guessing that this is the intended error type now. Apologies if I guessed wrong :-)

I ended up pulling #141 first. Thanks for the PR though!


error with ioctl on qcom adreno 730

./gpu_adreno_pmu_test 1000 10 1
opencl lib found but can not be opened: /system/lib64/libOpenCL.so err=(null)
opencl lib found but can not be opened: /system/lib64/libOpenCL_system.so err=(null)
opencl lib found but can not be opened: /system/lib64/egl/libGLES_mali.so err=(null)
opencl lib found but can not be opened: /system/vendor/lib64/egl/libGLES_mali.so err=(null)
opencl lib found but can not be opened: /system/vendor/lib64/libPVROCL.so err=(null)
opencl lib found but can not be opened: /usr/lib64/libGLESv2.so.2.1.0 err=(null)
opencl lib found but can not be opened: /data/data/org.pocl.libs/files/lib64/libpocl.so err=(null)
use opencl: libOpenCL.so
ioctl: read in the current value of an event set failed: Operation not permitted
terminating with uncaught exception of type std::runtime_error: Failed to read the value of an event set.
Aborted

device info: Qualcomm, Adreno (TM) 730
build cmd: ./android_build.sh -g adreno

看上去是权限问题，可能需要root权限

我应该已经获取了root 权限
adb root
-> adbd is already running as root
adb remount
-> remount succeeded
chmod 777 gpu_adreno_pmu_test
./gpu_adreno_pmu_test 100 10 10
WARNING: linker: Warning: "/odm/lib64" is not a directory (ignoring)
opencl lib found but can not be opened: /system/lib64/libOpenCL.so err=(null)
opencl lib found but can not be opened: /system/lib64/libOpenCL_system.so err=(null)
opencl lib found but can not be opened: /system/lib64/egl/libGLES_mali.so err=(null)
opencl lib found but can not be opened: /system/vendor/lib64/egl/libGLES_mali.so err=(null)
opencl lib found but can not be opened: /system/vendor/lib64/libPVROCL.so err=(null)
opencl lib found but can not be opened: /usr/lib64/libGLESv2.so.2.1.0 err=(null)
opencl lib found but can not be opened: /data/data/org.pocl.libs/files/lib64/libpocl.so err=(null)
use opencl: libOpenCL.so
ioctl: read in the current value of an event set failed: Operation not permitted
terminating with uncaught exception of type std::runtime_error: Failed to read the value of an event set.
Aborted
仍然是这样的信息。
是上述获取root权限的方式有误？还是其他什么问题呢？

啊， 是我看错了，你这是要在adreno730上采样呀，当前只支持adreno6xx系列的adreno，adreno7xx的pmu event list在开源世界里找不到，没法加支持

哦哦，好，期待后续更新。
另外问下 mali 有类似最高支持的版本吗？


Properly handle 403 forbidden error

Spent some time to figure out how to reproduce this issues.
It seems like SendGrid returns HTTP status 403 for only new APIs.
This closes #38.

@dlackty Can you please use && instead of and on your conditionals? && has higher precedence; details here: http://www.nishantnigam.in/2012/04/and-vs-double-ampersand-in-ruby.html

@freerobby rebased & updated conditionals.


Use PSR-11 Container Interface

container-interop can't be removed completely...  ZendViewRendererFactoryTest has tests for Zend\ServiceManager\AbstractPluginManager, which is not updated yet.

@xtreamwayz this looks good (so far) but I suggest waiting on merging this until container-interop can be removed completely. The partial changes are already a BC break, and removing container-interop entirely later would be another BC break. Might as well do it all in one shot.
There are quite a number of references to it in zendframework/zend-servicemanager which likely tie in to other ZF components, but as long as it gets a major version bump, we shouldn't need to update the other components right away.

I went ahead and submitted a PR to both zendframework/zend-servicemanager and zendframework/zend-eventmanager for interop -> PSR-11. Maybe we can end up removing interop from this PR entirely like you were able to do for the other two renderer repositories.

At this point this is starting to look really good.  I do think we need to support PSR-11 properly, there are some other comments that might be necessary to look at prior.  My approval is strictly on the code and the implements.

Thanks, @xtreamwayz!


Ctrl+Shift+Z should restore data to the state that was before like Ctrl+Y does

Is your feature request related to a problem? Please describe.

Well, I often use keybinding Ctrl+Shift+Z to restore text state after I accidentally undid too much changes using Ctrl+Z. In egui controls, e.g. text edit, Ctrl+Shift+Z doesn't behave like rest of such inputs in my system (Windows 10).
Describe the solution you'd like
Ctrl+Shift+Z keybinding should do redo operation, like Ctrl+Y does.
Describe alternatives you've considered
Do nothing and tell users to use Ctrl+Y. It works on egui controls.
Additional context
Well, I use computers the biggest part of my life and always used Ctrl+Shift+Z to cancel Ctrl+Z. Only when opening this issue, I checked if this is actually standardized and found that there exists a Ctrl+Y keybinding. I think, it is common for users to be like me so supporting both Ctrl+Y and Ctrl+Shift+Z would be convenient for them.
Maybe, it is a wrong repository to report this and I should report it to winit, I don't really know.

No, this has nothing to do with winit, and it's actually a bug in egui. The Ctrl+Shift+Z shortcut is supposed to work as redo as well:
https://github.com/emilk/egui/blob/23728e145ec52bd1193f6f0123973763de4dbb3d/crates/egui/src/widgets/text_edit/builder.rs#L997-L1015
But it doesn't, because the previous match arm (undo) is also triggered by this same key combination:
https://github.com/emilk/egui/blob/23728e145ec52bd1193f6f0123973763de4dbb3d/crates/egui/src/widgets/text_edit/builder.rs#L980-L996
This matches_logically method is supposed to work like this, at least according to its doctests:
https://github.com/emilk/egui/blob/23728e145ec52bd1193f6f0123973763de4dbb3d/crates/egui/src/data/input.rs#L769-L786
But it is being used incorrectly here, causing both Ctrl+Z and Ctrl+Shift+Z to work as undo.

This code looks awful
https://github.com/emilk/egui/blob/23728e145ec52bd1193f6f0123973763de4dbb3d/crates/egui/src/widgets/text_edit/builder.rs#L1002-L1004
I would be better introduce a Shortcut struct which will incapsulate keys and modifiers. QShortcut is a good inspiration.

There is https://docs.rs/egui/0.29.1/egui/struct.KeyboardShortcut.html. Not sure why it isn't being used here. Maybe it was introduced later and this code was never refactored. But that is a separate issue.


Add demo APK link

Add demo apk link in readme file and that should be updated on each release.

Hey @hi-manshu I want to work on this.

Please do it, I already have the app lined up but need actions to be integrated.

@hi-manshu I think we can reopen this, because the last chages are in main-old branch.


creator account

Describe the bug
When i try to generate accounts
To Reproduce
Steps to reproduce the behavior:
Traceback (most recent call last):
File "c:/Users/user/Downloads/discord-spam-bots-master/discord-spam-bots-master/start.py", line 148, in
for combo in emailList:
NameError: name 'emailList' is not defined
Expected behavior
I expected it will generate account xD
Screenshots

Desktop (please complete the following information):

Windows 10
Python 3.8.5

https://github.com/Merubokkusu/discord-spam-bots/wiki/Account-Creator


Check AMD GPU support

@TomMelt suggested we check support on AMD GPU devices and offered to test on a suitable machine.
To do this may require modifications akin to those in #125.

I think this would require downloading ROCM compatible rather than CUDA compatible libtorch as described here: https://pytorch.org/blog/pytorch-for-amd-rocm-platform-now-available-as-python-package/
We would then need to add the relevant enum to target the AMD backend.
This is perhaps something that could be combined in #125, or at least follow a very similar pattern.


Added "OneTime" mode option

"OneTime" type of mode was missing.
Please add here.

What do I need to see it

What do I need to see it

Ok what do I need to see wats on it


Failed to determine a valid solver configuration

I was trying to follow the dns01 challenge solver described here https://cert-manager.io/docs/configuration/acme/dns01/google/ however, the cert cant be fetched with order error says Failed to determine a valid solver configuration for the set of domains on the Order: no configured challenge solvers can be used for this challenge.
ClusterIssuer
Created in cert-manager namespace.
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
 name: letsencrypt
 namespace: cert-manager
spec:
  acme:
    # The ACME server URL
    # Staging
    server: https://acme-staging-v02.api.letsencrypt.org/directory
    # Production
    #  server: https://acme-v02.api.letsencrypt.org/directory
    # Email address used for ACME registration
    email: [myemailaddress]
    # Name of a secret used to store the ACME account private key
    privateKeySecretRef:
      name: letsencrypt
    # Enable the HTTP-01 challenge provider
    acme:
      solvers:
        - dns01:
            clouddns:
              # The ID of the GCP project
              project: [project-id]
              # This is the secret used to access the service account
              serviceAccountSecretRef:
                name: clouddns-dns01-solver-svc-acct
                key: key.json

Certificate
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
  name: my-tls
  namespace: sandpit
spec:
  secretName: my-tls
  issuerRef:
    name: letsencrypt
    kind: ClusterIssuer
  commonName: '*.mydomain.com'
  dnsNames:
  - mydomain.com
  - '*.mydomain.com'

I also tried this configuration for Certificate:
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
  name: my-tls
  namespace: sandpit
spec:
  secretName: my-tls
  issuerRef:
    name: letsencrypt
    kind: ClusterIssuer
  commonName: '*.mydomain.com'
  dnsNames:
  - mydomain.com
  - '*.mydomain.com'
  acme:
    config:
    - dns01:
        provider: clouddns
      domains:
      - mydomain.com
      - '*.mydomain.com'

The order created remains in pending state forever with Warning says:

Failed to determine a valid solver configuration for the set of domains on the Order: no configured challenge solvers can be used for this challenge

Why cant the solver be found?

Your ClusterIssuer definition is incorrect:
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
 name: letsencrypt
 namespace: cert-manager
spec:
  acme:
    # The ACME server URL
    # Staging
    server: https://acme-staging-v02.api.letsencrypt.org/directory
    # Production
    #  server: https://acme-v02.api.letsencrypt.org/directory
    # Email address used for ACME registration
    email: [myemailaddress]
    # Name of a secret used to store the ACME account private key
    privateKeySecretRef:
      name: letsencrypt
    # Enable the HTTP-01 challenge provider
    acme:
      solvers:
        - dns01:
            clouddns:
              # The ID of the GCP project
              project: [project-id]
              # This is the secret used to access the service account
              serviceAccountSecretRef:
                name: clouddns-dns01-solver-svc-acct
                key: key.json

should be:
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
 name: letsencrypt
 namespace: cert-manager
spec:
  acme:
    # The ACME server URL
    # Staging
    server: https://acme-staging-v02.api.letsencrypt.org/directory
    # Production
    #  server: https://acme-v02.api.letsencrypt.org/directory
    # Email address used for ACME registration
    email: [myemailaddress]
    # Name of a secret used to store the ACME account private key
    privateKeySecretRef:
      name: letsencrypt
    # Enable the HTTP-01 challenge provider
    solvers:
      - dns01:
          clouddns:
            # The ID of the GCP project
            project: [project-id]
            # This is the secret used to access the service account
            serviceAccountSecretRef:
              name: clouddns-dns01-solver-svc-acct
              key: key.json

i.e. there should not be an additional acme: before the solvers: line


bbfs fails to mount ("missing field term"?)

Hello! It seems that mounting doesn't work. Depending on the arugments, it either does nothing or shows a "missing field" error.
$ ~/.cargo/bin/bbfs /mnt
$ ~/.cargo/bin/bbfs /mnt --all
$ ~/.cargo/bin/bbfs /mnt --monitor
FailedToParseMemberships(Error("missing field `term`", line: 1, column: 4158))
Error: failed to initialize Blackboard fs driver
$ command ls -l /mnt
total 0
$ rustc --version
rustc 1.73.0 (cc66ad468 2023-10-03) (Arch Linux rust 1:1.73.0-1)

Do you know what the problem might be?
When authenticating with the webview, it also shows some warnings. I'm not sure these are related.
WARNING: Getting tokens from fapi backend failed.
...
ERROR: Could not initialize tpm ctx: 0x5

Ah, looks like we assumed something about the Blackboard “API” that appears to be wrong, thanks for reporting this! The errors and warnings during authentication look like they’re just from the web view library not bbfs so they can probably be ignored.
I’ll have a closer look when I get home

I've updated the term field to be optional in the latest commit (1a356b20b747a873a77bd770e4c66cf58bbedbc0), let me know if that fixes your issue 🤞

It works! Magical, thank you!
`

Awesome!


Fierfox issues

Hi while login i used remember password checkbox of firefox. After login the remembered email and password is autofilled in the text boxes of names with names given as textfield as value=mobileNumber and value=pass.
Here in above textField, mobileNumber is stored with emailId and pass is stored with password, which is entered at the time of login.

how to solve this problem please help me
i put type="string" now its working fine but we dont have input type="string"
my approach :

if any other solution is there please informe
please look into this : http://stackoverflow.com/questions/8379091/how-can-i-avoid-browser-prepopulating-fields-in-my-registration-form

Not a Leaflet issue.


test: Kconfig: Correct HAS_COVERAGE_SUPPORT description

HAS_COVERAGE_SUPPORT can be set both on boards with enough RAM to
store the coverage results, or for POSIX ARCH based ones
Signed-off-by: Alberto Escolar Piedras<EMAIL_ADDRESS>

Codecov Report

Merging #13270 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #13270   +/-   ##
=======================================
  Coverage   48.75%   48.75%
=======================================
  Files         319      319
  Lines       46871    46871
  Branches    10835    10835
=======================================
  Hits        22850    22850
  Misses      19394    19394
  Partials     4627     4627

Continue to review full report at Codecov.

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


gitignore lib/ dir

I am skimming various usages of gatsby and reason and I came across this. You may want to add lib/ to your .gitignore

Hi. Glad to meet a developer who is interesting with ReasonML.


ext: hal: altera: Don't depend on NEWLIB_LIBC

Contrary to what was written in its Kconfig, hal/altera depends not
on Newlib, but on a baseline POSIXish define like O_NONBLOCK. Minimal
libc now provides them, so there're no issues with building Altera
for either minimal on newlib libc.
Signed-off-by: Paul Sokolovsky<EMAIL_ADDRESS>

Codecov Report

Merging #10468 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #10468      +/-   ##
==========================================
+ Coverage   53.23%   53.24%   +<.01%
==========================================
  Files         210      210
  Lines       25800    25796       -4
  Branches     5677     5677
==========================================
  Hits        13735    13735
+ Misses       9755     9751       -4
  Partials     2310     2310

Impacted Files
Coverage Δ

kernel/init.c
77.58% <0%> (+5%)
:arrow_up:

Continue to review full report at Codecov.

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

adding empty headers is not the way to go though, there is another major bug that we need to address first with the toolchain that can help with this and other things you are doing wrt posix, file descriptors etc. see #8944

adding empty headers is not the way to go though

I can add copyright header if you insist. But otherwise, it follows the great pattern of sys/cdefs.h: https://github.com/zephyrproject-rtos/zephyr/blob/master/lib/libc/minimal/include/sys/cdefs.h , which serves us great in its empty shape for 1.5 years.

there is another major bug that we need to address first with the toolchain that can help with this and other things you are doing wrt posix, file descriptors etc. see #8944

Hopefully not, as definitions of compiler-bound types and functions (as present in the toolchain headers) hopefully don't cross their roads with POSIX stuff. And I thought I approved #8944, but see I didn't. Well, I now actually a bit more on galak's side there on possibility of header conflicts, that's what I was getting last 2-3 days. I can approve it if you need yet another voice there though ;-).
But anyway, we wouldn't be taking headers like fcntl.h and sys/stat.h from compiler (hopefully!), because those are truly libc's.

it follows the great pattern of sys/cdefs.h: https://github.com/zephyrproject-rtos/zephyr/blob/master/lib/libc/minimal/include/sys/cdefs.h

So, switched to follow https://github.com/zephyrproject-rtos/zephyr/blob/master/lib/libc/minimal/include/time.h instead.

it follows the great pattern of sys/cdefs.h: /lib/libc/minimal/include/sys/cdefs.h@master , which serves us great in its empty shape for 1.5 years.

This file is being removed in #8944
I am fine merging this PR now to get things aligned and not use newlib for that board, but please mark the commit adding sys/stat.h as [REVERTME]

Hopefully not, as definitions of compiler-bound types and functions (as present in the toolchain headers) hopefully don't cross their roads with POSIX stuff.

Those are not gcc header, those are headers from the libc coming with the toolchain. This is the behaviour we see with all non-zephyr SDK toolchain and that fact that we do things differently is leading to the confusion.

looks like you missed one:
i9:zephyr(master): git grep NEWLIB boards/
boards/nios2/altera_max10/altera_max10_defconfig:CONFIG_NEWLIB_LIBC=y

@nashif : Will fix. So far, driven by CI failures ;-)


Generated client does not accept content types specified in schema

Problem statement
If some content type like "image/png" or "/" is specified in "produces" part schema, generated client does not accept those content types and errors out with 'no consumer: "image/png"'.
Specifically, we use a schema like the one below and respond to user requests with binary data and set content-type header manually based on mime-type of the data. It works fine if you access it from curl or web browser but errors in go-swagger generated client.
Swagger specification
swagger: "2.0"
info:
  title: Test
  version: 0.0.1
schemes:
- "http"
paths:
  /test:
    get:
      produces:
        - "application/octet-stream"
        - "*/*"
      responses:
        200:
          description: 200 response
          headers:
            Content-Type:
              type: string
          schema:
            type: string
            format: byte

You don't strictly need to specify the Content-Type header.
I think it should work if you define your spec like:
swagger: "2.0"
info:
  title: Test
  version: 0.0.1
schemes:
- "http"
paths:
  /test:
    get:
      produces:
        - "application/octet-stream"
      responses:
        200:
          description: 200 response
          schema:
            type: string
            format: binary

When it comes to unknown mime types and not having producers or consumers, those are stored in a map on the client and you can add your own.  They are not meant to be a complete list although we could/should probably add a few more.
https://github.com/go-openapi/runtime/blob/master/client/runtime.go#L140-L151

I need to specify correct content-type so web browser is able to pick it up as correct content and display/act accordingly.
What I guess I really need is a default consumer for generated client that if set, acts as a fallback option (most likely it will just act as a default ByteStreamConsumer). I need that since I cannot specify beforehand which content-types will be used.

See also #1284

This is still an on-going problem. Indeed, using application/octet-stream is a solution, but there are cases much like the one OP described with images where we do want the client to behave like application/octet-stream despite the specified content type.
As a temporary workaround, I modified the generated NewHTTPClientWithConfig in the _client.go file to include:
	transport.Consumers["image/jpeg"] = runtime.ByteStreamConsumer()
	transport.Consumers["image/png"] = runtime.ByteStreamConsumer()
	transport.Consumers["image/webp"] = runtime.ByteStreamConsumer()
	transport.Consumers["image/gif"] = runtime.ByteStreamConsumer()

Works without any problems :)

fwiw you can edit that in your own application code without modifying the generated code.
You will just need to use a different constructor, there is a reason those fields are exported :)
here's an example where I build a client to actually reuse tcp connections and I've added a consumer in there too so you see where to do it.
func (c *clusterFlags) NewAPIClient() (*bhclient.BuildingHistory, error) {
	clientTlsOpts, err := httptransport.TLSClientAuth(httptransport.TLSClientOptions{
		CA:          c.ClientCACertificate,
		Certificate: c.ClientCertificate,
		Key:         c.ClientCertificateKey,
	})
	if err != nil {
		return nil, fmt.Errorf("TLS config: %v", err)
	}

	transp := httptransport.KeepAliveTransport(&http.Transport{
		Proxy: http.ProxyFromEnvironment,
		DialContext: (&net.Dialer{
			Timeout:   30 * time.Second,
			KeepAlive: 30 * time.Second,
			DualStack: true,
		}).DialContext,
		MaxIdleConns:          100,
		IdleConnTimeout:       90 * time.Second,
		TLSHandshakeTimeout:   10 * time.Second,
		ExpectContinueTimeout: 1 * time.Second,
		TLSClientConfig:       clientTlsOpts,
	})

	schemes := bhclient.DefaultSchemes

	bt := httptransport.New(c.JoinURI().Host, bhclient.DefaultBasePath, schemes)
	// further configure go-swagger runtime.Transport
	bt.Consumers["image/jpeg"] = runtime.ByteStreamConsumer()
	bt.Transport = transp
	return bhclient.New(bt, nil), nil
}