Statusfy breaks when in a subfolder

[x] I confirm that this is a issue rather than a question.

Bug report
When installed in a subfolder (ie https://status/example.com/company1), several things break as links to assets or other pages do not expect this.
Version
0.3.0.beta1 (also with previous 0.2.x)
Steps to reproduce
Install in a subfolder

What is expected?
All links work normally.
What is actually happening?

Logo is a 404, it links to /static/img/xxxx.png instead of /subfolder/static/img/xxxx.png or use a fully qualified link
Link to History is a 404

They all link to /xxxx instead of /subfolder/xxxx.
Other relevant information

I'd suggest the baseURL is used to prefix all those links. Best would be to automatically determine the subfolder by separating the domain from the baseUrl. Or else a secondary config option can be added, ie baseURL = https://status.example.com + baseFolder = /company_A/department_1

Using a subfolder is common when hosting pages on Gitlab

Your OS: N/A
Node.js version: N/A
Browser version: N/A
Is this a global or local install? N/A
Which package manager did you use for the install? N/A

A bit more digging: some links are correct and some are wrong:
 elements:
alternate | https://status.example.com/weeblr/feeds/incidents.en.xml (application/rss+xml)
-- | --
alternate | https://status.example.com/weeblr/feeds/incidents.en.atom (application/atom+xml)
apple-touch-icon | /static/icons/icon_512.cYMpj1By2g0.png
icon | /static/icons/icon_16.cYMpj1By2g0.png
icon | /static/icons/icon_120.cYMpj1By2g0.png
icon | /static/icons/icon_144.cYMpj1By2g0.png
icon | /static/icons/icon_152.cYMpj1By2g0.png
icon | /static/icons/icon_192.cYMpj1By2g0.png
icon | /static/icons/icon_384.cYMpj1By2g0.png
icon | /static/icons/icon_512.cYMpj1By2g0.png
preload | /static/735eebfff243660d13be.js
preload | /static/ce19037f8953cdde44a2.js
preload | /static/b4cbd316a18fcb22032e.js
preload | /static/96a5fbe5ae2bab709c52.js
preload | /static/5a21c58ab4758057a595.js
shortcut icon | /static/icons/icon_16.cYMpj1By2g0.png

Images:
Images |   | https://status.example.com/static/img/0499156.pngResponse code: 404
-- | -- | --
Images |   | https://status.example.com/static/icons/icon_16.cYMpj1By2g0.pngResponse code: 404
Images |   | https://status.example.com/static/icons/icon_512.cYMpj1By2g0.pngResponse code: 404

Hello, @weeblr.
My team and I evaluated the use of the "subpaths/subfolders", and agreed to remove the support for them for these two reasons:

The framework we use as a base (Nuxt.js) does not implement the "subpaths/subfolders" correctly (for our requirements), and fixing this issue requires several tweaks that make the code even more complex.
One of the recommended practices for "Status Page Systems" is to place them in a sub-domain or a different domain, so the subpaths are not very useful.

The next stable release (v0.3.0), will include this change.

Hi Julio
Then you should remove from documentation the ability to host on Github and Gitlab pages (at least, did not checked other hosting solutions). That won't work, they are in subfolders in most cases (ie url is: group.domain.com/pages-project-name)
From Statusfy own documentation:

If you don't have any custom domain, set the correct baseUrl in config.js. For example, if you are deploying to https://.gitlab.io//, (i.e. your repository is at https://gitlab.com//), you can set baseUrl to "//" or "https://.gitlab.io//" (recommended).

I guess Statusfy just lost a lot of interest for a lot of people without GitHub or Gitlab hosting ;)
Best regards

You can still use those services, but you will have to set up a custom domain for Gitlab or Github 🤓.

Hi
That's not possible if you run your own Gitlab as many people do and you already are on a custom domain, ie pages are at group.our_custom_domain.com/status/
Best regards

There are other free services you could use as an alternative: Firebase, Heroku, Surge, Netlify or Now. They also provide you an URL for your deployments.

That'd be adding another layer/supplier to something that does not need it: we use Gitlab for everything and it already provides all that's needed.
No worries, that's your call. I feel a bit sorry I wasted that time I spent on Statusfy, still happy that you implemented Scheduled incident.
Statusfy just won't cut it for us, we'll have to stick to Cachet.
Best regards

Sorry to hear that. You could create a new issue describing why this is important. If this gets enough interest from the community, we can add support to sub-paths when we start working on this issue https://github.com/bazzite/statusfy/issues/158.

Hi
I have done so in https://github.com/bazzite/statusfy/issues/171
Best regards


Add: dxvk-gplasync

Requesting that dxvk-gplasync to be added as dxvk-async has not been updated for almost a year now.
Unsure if this would be blocked by #85

Updated #86 which fixes #85 but it relies on a new npins release.


How can we use proxies with this?

Hello I was wondering, how can we use proxies with this? I can see in cclient there is a use of proxies, but can't parse ja3str to create a custom transport! so how can we be able to use proxies with this?

Since ja3transport returns a Transport object, and proxies are handled by the Transport object, you can always add the Proxy field to the http.Transport object.
Here's a general overview of how you'd accomplish that:
tr, _ := NewTransport("771-61-60-53,0-23-15,29,23,24,0")
tr.Proxy = MyProxy()
client := &http.Client{Transport: tr}
client.Get("https://ja3er.com/json")

You can also check out how we create the Transport object and fork the project to your own liking: https://github.com/CUCyber/ja3transport/blob/master/transport.go#L108

Since ja3transport returns a Transport object, and proxies are handled by the Transport object, you can always add the Proxy field to the http.Transport object.
Here's a general overview of how you'd accomplish that:
tr, _ := NewTransport("771-61-60-53,0-23-15,29,23,24,0")
tr.Proxy = MyProxy()
client := &http.Client{Transport: tr}
client.Get("https://ja3er.com/json")

You can also check out how we create the Transport object and fork the project to your own liking: https://github.com/CUCyber/ja3transport/blob/master/transport.go#L108

It appears that once you use a proxy, the JA3 will now get generated based on the proxy server's TLS setup and not the client. This is based on observations I'm seeing and not via deep knowledge in this space.

Sorry for taking os long to respond. Yep, that's the expected behavior. When the client sends a TLS ClientHello, the proxy server will intercept that and use it's own ClientHello to respond to the server since the proxy is making the final TLS request at the end of the day.


Make first exercise in the track (Etl) start with failing tests, not compilation errors.

Today, we start off new folks with a wrongly filled-out solution file.  I'm proposing that not only should we fix this, but provide enough code in that first exercise that when the exercist runs the tests, they get tests failing for the right reasons (i.e. on assertions) rather than compilation errors.
So, go from this:
public Etl {
}

(notice the missing class keyword; but will yield other compilation errors, too)
...to this...
import java.util.List;
import java.util.Map;

public class Etl {
    public Map<String, Integer> transform(Map<Integer, List<String>> old) {
        return null;
    }
}

Thoughts? (cc: @kytrinyx @pietvandongen @vdemeester @sit)

Yeah, I think this sounds good. Then perhaps on the next exercise we can have compilation errors (and maybe warn them about it).

I also think it sound good too :wink: ; about the warning too.


Please update soon for new version of btd6

The compat doesn’t work with the new update and I am look forward for when it does pls do as soon as possible thank you

Did you started the game without any mod ? I started game first with just MelonLoader installed, them inserted this plugin and started and then all others and it went on without issue after that.


Change the icon to look more modern

This is my favorite version of the icons: different colors and partially covered by the cloak.
https://github.com/nefarius/HidHide/issues/140

Much appreciated :pray:


Artifacts are non-deterministic

Description
This effectively reverts https://github.com/sigstore/cosign/pull/2108
Determinism is a feature, not a bug. Libraries should not depend on external, global, mutable state (time.Now()).
Once this is fixed, I will reopen https://github.com/sigstore/cosign/issues/522, and (if someone wants) they can plumb an option through that sets the time.
Version
Since https://github.com/sigstore/cosign/issues/522

It seems there were arguments regarding

The importance of reproducibility (@dlorenc @dekkagaijin)
Some providers using timestamps to perform housekeeping, thus not depending on time.Now() biting you in the back (again @dekkagaijin @imjasonh)


Think about having a Singleton for OceanNode class (that will include also all handlers)

Right now most of our handlers need access to DB or OceanP2P.
The way we have the handling of commands implemented we need to pass the OceanP2P to the constructor..
But in most cases we do not need any P2P networking at all (only for FindDOO which queries alternative providers for did)
And often we have dependency cycle issues when "cross" importing stuff, especially when running tests.
Because some of these functions for instance, reference OceanP2P class before it gets initialized.. Basically we are being forced to code in a certain way, because of the test suite... When running a node instance, we have a single entry point (index.js) and we do not have any issues... So, its not the node code, in most cases, but the references to certain classes when import files that contain functions that reference classes (uninitialized classes).
Some refactor have been done, but it is still somewhow conditioned by this..
A proposed approach could be having just a Singleton OceanNode class instance...
And whenever we need P2P, DB, Indexer, Provider, just get those properties from the OceanNode instead
Right now, if we do not have a P2P node, our handlers do nothing, cause most need to access DB and they are doing it through the P2P node instead.. On the other hand, we might not have a local DB but still should be able to do P2P networking to forward the requests.. AS IS, everything seems to work but in reality its all a bit "hacked"..
Something like:
export class OceanNode {

private OceanNode instance

private constructor(
    private config: OceanNodeConfig,
    private db: Database,
    private node?: OceanP2P,
    private provider?: OceanProvider,
    private indexer?: OceanIndexer
  )

  public static getInstance(config: OceanNodeConfig,
    db: Database,
    node?: OceanP2P,
    provider?: OceanProvider,
    indexer?: OceanIndexer): OceanNode {
    // get instance or build new new OCeanNode()
     return instance
  }
}

so, we could always refer to OceanNode.getInstance() ... to get access to other elements....
for handling commands, etc...
we have a lot of code like: this.getP2PNode().getDatabase() on the handlers (that don't even need P2P), and also some boilerplate code on Indexer and Provider to access Database... All this could come from the OceanNode instance
PS: Also Commands/interfaces should move out of utils/constants.ts to the types folder

Just an extra info. Right now our config has hardcoded http and p2p
both interfaces are always present. Not sure if this is desired to stay as IS, or will eventually change but for instance, if we disable P2P we loose pretty much all the functionality, because we're accessing pretty much everything (most handlers) from the unexisting P2P node, and the app breaks

closed on https://github.com/oceanprotocol/ocean-node/pull/224


0.2.1

gray-matter is now more strict with delimiters and whitespace on the same line. Previously, whitespace was allowed both before and after the delimiter. Now, you can only have whitespace after the delimiter.
gray-matter is also less strict with the first delimiter. It does not allow whitespace at the start of the line, but does so at the end (which it did not previously).
Fixed a panic that was thrown when two delimiters directly followed eachother.

Shit, I forgot to change the version number...


Add ability to import individual SKY UX modules

Codecov Report

Merging #383 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #383      +/-   ##
==========================================
+ Coverage   99.25%   99.25%   +<.01%
==========================================
  Files          71       71
  Lines        1740     1741       +1
  Branches      282      283       +1
==========================================
+ Hits         1727     1728       +1
  Misses         13       13

Flag
Coverage Δ

#builder
100% <100%> (ø)
:arrow_up:

#runtime
94.75% <ø> (ø)
:arrow_up:

#srcapp
100% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

utils/runtime-test-utils.js
100% <ø> (ø)
:arrow_up:

runtime/config.ts
100% <ø> (ø)
:arrow_up:

lib/sky-pages-module-generator.js
100% <100%> (ø)
: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 52df752...c76ad6c. Read the comment docs.

Looks good to me! Only concern I would have is the legacy config that some SPAs will have once we split up the libraries and this feature becomes deprecated. But I suppose there might be other properties in the config that will change too, so not a huge deal.

@Blackbaud-PaulCrowder: Also, it appears that every module combination I tried required the SkyErrorModule; not sure if it's worth adding that one in no matter what. See: https://github.com/blackbaud/skyux-builder/blob/35a038fa5a5982d523b6496965371f3b1ef57a4e/lib/sky-pages-route-generator.js#L129


xdg-terminal-exec: init at unstable-2023-12-08

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[x] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Duplicate of https://github.com/NixOS/nixpkgs/pull/244886

Duplicate of #244886

i should have looked
but the author of #244886 seems to be unresponsive

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/1302

Reviewed points
Result of nixpkgs-review pr 273386 run on x86_64-linux 1

1 package built:

xdg-terminal-exec

Reviewed points

[X] package path fits guidelines
[X] package name fits guidelines
[X] package version fits guidelines
[X] package builds on x86_64-linux
[X] executables tested on x86_64-linux
[X] meta.description is set and fits guidelines
[X] meta.license fits upstream license
[X] meta.platforms is set
[X] meta.maintainers is set
[X] build time only dependencies are declared in nativeBuildInputs
[X] source is fetched using the appropriate function
[X] when a phase (like installPhase) is overridden it starts with runHook preInstall and ends with runHook postInstall.


nsqd: why does the diskbuffer not use a bufio writer?

asking because i noticed the included benchmarks test straight writing vs buffered writing, and buffered writing comes out as much faster (at least on my system, with SSD):
BenchmarkDiskWrite	 3000000	       516 ns/op	 495.39 MB/s
BenchmarkDiskWriteBuffered	20000000	        91.2 ns/op	2806.79 MB/s

yet, the diskbuffer uses straight writes?

Because it's a queue, it needs to be able to (potentially) immediately coordinate across reads and writes.  If we buffered writes in memory we would also need to write a custom buffering implementation that is also able to be read from seamlessly, which is arguably exactly what the "in memory" queue already provides.


Fails to build

!➜ ~/W/T/bizzi (mstr/*10) opam pin add eq https://github.com/jonase/eq.git
[NOTE] Package eq is already git-pinned to https://github.com/jonase/eq.git.
       This will erase any previous custom definition.
Proceed ? [Y/n] y

[eq] https://github.com/jonase/eq.git updated
[eq] Installing new package description from https://github.com/jonase/eq.git

eq needs to be installed.
The following actions will be performed:
  ∗  install ocamlfind       1.8.0            [required by eq]
  ∗  install topkg           0.9.1            [required by edn]
  ∗  install menhir          20180703         [required by edn]
  ∗  install base-bytes      base             [required by cppo]
  ∗  install cppo            1.6.4            [required by cconv]
  ∗  install cppo_ocamlbuild 1.6.0            [required by cconv]
  ∗  install cconv           0.4              [required by edn]
  ∗  install edn             0.1.5            [required by eq]
  ∗  install eq              0.1*
===== ∗  9 =====
Do you want to continue ? [Y/n] y

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[cconv] Archive in cache
[cppo] Archive in cache
[cppo_ocamlbuild] Archive in cache
[edn] Archive in cache
[menhir] Archive in cache
[ocamlfind] Archive in cache
[topkg] Archive in cache
[eq] https://github.com/jonase/eq.git already up-to-date

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of ocamlfind failed at "make all".
Processing  1/9: [ocamlfind: rm]
#=== ERROR while installing ocamlfind.1.8.0 ===================================#
# opam-version 1.2.2
# os           linux
# command      make all
# path         /home/skrat/.opam/system/build/ocamlfind.1.8.0
# compiler     system (4.06.0)
# exit-code    2
# env-file     /home/skrat/.opam/system/build/ocamlfind.1.8.0/ocamlfind-18020-2c871f.env
# stdout-file  /home/skrat/.opam/system/build/ocamlfind.1.8.0/ocamlfind-18020-2c871f.out
# stderr-file  /home/skrat/.opam/system/build/ocamlfind.1.8.0/ocamlfind-18020-2c871f.err
### stdout ###
# [...]
# ocamlc -I +compiler-libs -opaque -g -c fl_args.ml
# ocamlc -I +compiler-libs -opaque -g -c fl_lint.ml
# ocamlc -I +compiler-libs -a -o findlib.cma findlib_config.cmo fl_split.cmo fl_metatoken.cmo fl_meta.cmo fl_metascanner.cmo fl_topo.cmo fl_package_base.cmo findlib.cmo fl_args.cmo fl_lint.cmo
# ocamlc -I +compiler-libs -opaque -g -c ocaml_args.ml
# ocamlc -I +compiler-libs -opaque -g -c frontend.ml
# ocamlc -I +compiler-libs  -o ocamlfind -g findlib.cma unix.cma \
#            ocaml_args.cmo frontend.cmo
# ocamlc -I +compiler-libs -opaque -c topfind.mli
# ocamlc -I +compiler-libs -opaque -g -c topfind.ml
# make[1]: Leaving directory '/home/skrat/.opam/system/build/ocamlfind.1.8.0/src/findlib'
### stderr ###
# File "frontend.ml", line 1823, characters 16-29:
# Warning 3: deprecated: String.create
# Use Bytes.create instead.
# File "topfind.ml", line 55, characters 12-41:
# Error: Unbound module Toploop
# make[1]: *** [Makefile:165: topfind.cmo] Error 2
# make: *** [Makefile:13: all] Error 2

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions were aborted
  ∗  install base-bytes      base
  ∗  install cconv           0.4
  ∗  install cppo            1.6.4
  ∗  install cppo_ocamlbuild 1.6.0
  ∗  install edn             0.1.5
  ∗  install eq              0.1
  ∗  install menhir          20180703
  ∗  install topkg           0.9.1
The following actions failed
  ∗  install ocamlfind 1.8.0
No changes have been performed
[NOTE] Pinning command successful, but your installed packages may be out of sync.

Sorry I have no idea how to use OCaml or Opam. Just tried to install the tool. Thank you


Fix beep: flush the output buffer

It works when using it through --onfail 'python -c "print(\"\a\", end=\"\")";', but not with the default options (without --nobeep).
I am not sure why that is required?!
I am using Python 3.5.0.

Oh, it does not work: I was still using the bell char in --onfail.
So, don't merge this, but it should be an issue instead.

Ha! I just ran into this same issue in http://github.com/joeyespo/py-getch. Nice find.
The print(BEEP_CHARACTER, end='') line can actually stay as-is; this works across Python versions. Python 3.x added a flush argument to flush the output, but Python 2.7 doesn't have this, so the workaround is follow it by what you have there: sys.stdout.flush().
Is this ready?

Yes, should be ready.
I've found out about the (too new) flush argument also, and when using sys.stdout.flush I've replaced the print also - seems to be more consistent.
Do you think it should be kept as print?  Then feel free to amend when merging.

Gotcha. Yeah, will probably keep print to follow "There should be one-- and preferably only one --obvious way to do it" -- in this case, print out text. Someday the flush call can be replaced with a flush argument. (Probably years though haha.)
Thanks for the fix :smiley:


Bug that happens in the Mattermost app thread.

Summary
Unexpected error when pressing user icon in Mattermost thread
Environment Information

Device Name: iPhone13
OS Version: iOS16.3.1
Mattermost App Version:v2.12.1
Mattermost Server Version:9.3.0 and 9.2.3

Steps to reproduce
Smartphones could be reproduced on either iPhone or android.
Open the app version of Mattermost on your phone (app version is 2.12.1 (latest version)), tried two versions of Mattermost's server, 9.3.0 and 9.2.3, and was able to reproduce both
Expected behavior

Press the Threads item in the Mattermost application.
Select one thread from all threads and press
Press the user icon of the person who is speaking in the thread.
Press the user icon again as the user's information comes up.
You will get an unexpected error and when you press restart, the text in the thread will not appear and you will only be able to go back.

Observed behavior (that appears unintentional)

https://github.com/mattermost/mattermost-mobile/assets/158599254/fa069b08-fef4-49f6-a46e-5ba7c676906f

Opened https://mattermost.atlassian.net/browse/MM-56755.


'check session only' or 'guest user' feature

Let me know if you are familiar with this mode of operation.
I have an application that expects REMOTE_USER from the web server. It checks the REMOTE_USER against permissions on individual pages within the application. If a page is private, the application returns 401 or 403 depending on whether REMOTE_USER is set. The web server converts 401 to a redirect to the login page.
In other words, the bulk of the application would pass a flag to openidc.authenticate() to skip the openidc_authorize() call. Instead of doing a redirect, openidc.authenticate() would return 'user not logged in': https://github.com/pingidentity/lua-resty-openidc/blob/master/lib/resty/openidc.lua#L635
The location for the login page would of course continue to do the redirect when the user was not logged in.

Configuration winds up looking like this. oidc_check skips openidc_authorize, returning nil and not setting REMOTE_USER if the user is not logged in. oidc_do works as lua-resty-openidc does today. Only when the application says 401 Unauthorized does the login page show.
    set $oidc_user "<not logged in>"; # or the empty string

    location / {
        access_by_lua_file 'oidc_check.lua';

        include uwsgi_params;
        uwsgi_param REMOTE_USER $oidc_user;
        uwsgi_modifier1 30;
        uwsgi_pass <IP_ADDRESS>:4444;
        uwsgi_intercept_errors  on;

        error_page 401 = @login;
    }

    location @login {
        access_by_lua_file 'oidc_do.lua';
        content_by_lua_block {
          ngx.header.content_type = "text/plain; encoding=utf-8"
          ngx.say('Unauthorized');
        }
    }

diff -r 19ab53e1ef2d lua/lua-resty-openidc/lib/resty/openidc.lua
--- a/lua/lua-resty-openidc/lib/resty/openidc.lua	Wed May 17 17:06:22 2017 +0000
+++ b/lua/lua-resty-openidc/lib/resty/openidc.lua	Wed May 17 19:33:32 2017 +0000
@@ -589,7 +589,7 @@
 end

 -- main routine for OpenID Connect user authentication
-function openidc.authenticate(opts, target_url)
+function openidc.authenticate(opts, target_url, allow_nil_user)

   local err

@@ -632,6 +632,13 @@

   -- if we have no id_token then redirect to the OP for authentication
   if not session.present or not session.data.id_token then
+    if allow_nil_user then
+      return
+        nil,
+        err,
+        target_url,
+        session
+    end
     return openidc_authorize(opts, session, target_url), session
   end

Yes, that's a useful feature that some call "lazy sessions" also implemented in mod_auth_openidc with OIDCUnAuthAction pass.  I would be fine merging a PR but I'd prefer to call the option "check_session_only" (or even "unauth_action" to stay in line with mod_auth_openidc).

See #54


It always tells me "No Internet Connection",I have no idea if it is related to my location?I'm in China.

Dear friend we want to specify that this repo is {N} Playground related.
Please use it to provide feedback or report an issue related to {N} Playground only.
If your issue is related to {N} itself please report it to the {N} repo
or search for solution in Stack Overflow.
All issues which are not related to {N} Playground will be closed.
We appreciate your feedback! While we are doing all we can to take care of every
issue, sometimes we get overwhelmed. Because of that, we will consider issues
that are not constructive or problems that cannot be reproduced "dead".
Additionally, we will treat feature requests or bug reports with unanswered
questions regarding the behavior/reproduction for more than 20 days "dead". All
"dead" issues will get closed.
Please, provide the details below:
Did you search for the problem in other open issues in this repo?
Tell us about the problem
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Did you try it outside of {N} Playground?

Yes - it has the same behavior as in the playground
Yes - but the behavior is different (give more information)
No

Which browser are you using?

Chrome
Safari
Mozilla
IE

Are there any errors/warnings logged in your browser console?
Which platform(s) does your issue occur on?

iOS
Android
Both

Are there any entries logged in the Device Logs tab?
Please provide the following information shown in devices tab in the playground:

Model
OS version
Preview app version
Runtime version

Please tell us how to recreate the issue with as much detail as possible.
The best approach would be to get your code running in the {N} Playground and share the link with us, along with any additional details or steps to reproduce needed for examining the issue there.

Hi, we have a logic that tries to open google.com to determine that you have an internet connection (the wait time is 5 seconds).
Could you please verify that you can open google.com on your device?
Could please gives us more information:

What is your device?
What is your device OS and version?
Is your device rooted?

Well,I can‘t open google.com..My device is IPhone 6s,and the version of OS is 11.2.5.
Thank you !

Thank you for the information provided.
If you are not able to open google.com on your device we will always show the alert because this is the way how we determine if the device has an internet connection.
To use the Playground is necessary to have an internet connection.
Is there a specific reason why you can not open google.com on your device?
I can give you a workaround:

Instal Nativescript Playground from apple store
Instal Nativescript Preview from apple store
Install any QR Scan app from apple store (e.g. "QR Code- QR Reader & Scanner")
Scan the QR code from the playground

Wow!!!That works!!!!Cool!!!

We have changed the internet connectivity check. In such way you shouldn't experience this problem anymore. You need to update your Nativescript Playground app through App Store.


Update to Cats 0.7.0

This (together with #595) supersedes #608, but since we don't have a catbird release for Cats 0.7.0 and Finagle 6.36.0, it'll need to wait until Finch is ready to drop 2.10 support.

So this looks 👍  but the travis definitions should be changed to drop the 2.10 and non-jdk8 builds as they'll always fail.

Current coverage is 73.77% (diff: 0.00%)

Merging #629 into master will not change coverage

Powered by Codecov. Last update 5c8884d...f670ca5

Right, thanks @crispywalrus.

This change has led to a test failure in my project (which uses finch + circe + jackson)
SEVERE: Fatal exception propagated to the root monitor!
java.lang.NoClassDefFoundError: io/circe/jawn/package$
	at io.finch.circe.Decoders$$anonfun$decodeCirce$1.apply(Decoders.scala:14)
	at io.finch.circe.Decoders$$anonfun$decodeCirce$1.apply(Decoders.scala:13)
	at io.finch.LowPriorityDecodeInstances$$anon$1.apply(Decode.scala:21)
	at io.finch.Endpoint$StringEndpointOps$$anonfun$as$extension$3.apply(Endpoint.scala:447)
	at io.finch.Endpoint$StringEndpointOps$$anonfun$as$extension$3.apply(Endpoint.scala:447)
	at io.finch.Endpoint$$anon$3$$anonfun$apply$1$$anonfun$apply$2$$anonfun$apply$3.apply(Endpoint.scala:97)
	at io.finch.Endpoint$$anon$3$$anonfun$apply$1$$anonfun$apply$2$$anonfun$apply$3.apply(Endpoint.scala:97)
	at io.finch.Output$class.traverse(Output.scala:68)
	at io.finch.Output$Payload.traverse(Output.scala:142)
	at io.finch.Endpoint$$anon$3$$anonfun$apply$1$$anonfun$apply$2.apply(Endpoint.scala:97)
	at io.finch.Endpoint$$anon$3$$anonfun$apply$1$$anonfun$apply$2.apply(Endpoint.scala:97)

This code worked as expected (i.e. it used the jackson decoder/decode) before the upgrade (no class not found exception). It's kind of a kitchen sink wrt imports
import com.twitter.util.Await
import com.twitter.finagle.http._
import com.creditkarma.jarvis.model._
import com.creditkarma.jarvis.modules._
import com.creditkarma.jarvis.services._, modules._
import com.twitter.finagle.stats.NullStatsReceiver
import com.typesafe.config._
import io.circe.generic.decoding.DerivedDecoder._
import io.circe.jackson._
import io.finch.circe._
import org.scalatest._

@crispywalrus If I remember correctly (or rather if this hasn't changed in the past few months), Finch only supports using Jackson for printing, not parsing.
The NoClassDefFoundError found is really odd, since finch-circe definitely has a circe-jawn dependency. You've tried cleaning?

Thanks @travisbrown! Merging that.


kube-apiserver 1.16+ complains that CiliumNode CRD is non-strucutural

$ kubectl get crds ciliumnodes.cilium.io -o yaml

status:
  acceptedNames:
    kind: CiliumNode
    listKind: CiliumNodeList
    plural: ciliumnodes
    shortNames:
    - cn
    - ciliumn
    singular: ciliumnode
  conditions:
  - lastTransitionTime: "2020-09-16T21:46:24Z"
    message: 'spec.validation.openAPIV3Schema.type: Required value: must not be empty
      at the root'
    reason: Violations
    status: "True"
    type: NonStructuralSchema
  - lastTransitionTime: "2020-09-16T21:46:24Z"
    message: the initial names have been accepted
    reason: InitialNamesAccepted
    status: "True"
    type: Established
  storedVersions:
  - v2

Cilium version: 1.8.3, not master
K8s version: 1.16+
Steps to reproduce:

Deploy Cilium 1.8.3 on a K8s 1.16 environment
Run command from above

Fixed by #13196.


Sample function Python fails to build:  dial tcp <IP_ADDRESS>:443: i/o timeout [id:65f44802]

Following the sample instructions: https://github.com/OpenFunction/samples/tree/main/functions/knative/hello-world-python
$ sudo pack build python-sample --builder openfunction/gcp-builder:v1 --env GOOGLE_FUNCTION_TARGET=hello_world
v1: Pulling from openfunction/gcp-builder
Digest: sha256:3c059c0cc83c98b43fc947f470162720a7b59dd45a7dd38af1c1f4ee54a24794
Status: Image is up to date for openfunction/gcp-builder:v1
v1: Pulling from buildpacks/gcp/run
Digest: sha256:4ba3727b3c1527ecb81e5e84db9447fd955859868c52d7b41bca97a1f6df4b9b
Status: Image is up to date for gcr.io/buildpacks/gcp/run:v1
0.13.3: Pulling from buildpacksio/lifecycle
Digest: sha256:9d194fc3997e8c448473431433908d932cd359b10b270f2b0f76ec795c8cae28
Status: Image is up to date for buildpacksio/lifecycle:0.13.3
===> ANALYZING
[analyzer] Previous image with name "python-sample" not found
===> DETECTING
[detector] 4 of 5 buildpacks participating
[detector] google.python.runtime             0.9.1
[detector] google.python.functions-framework 0.9.6
[detector] google.python.pip                 0.9.2
[detector] google.utils.label                0.0.2
===> RESTORING
===> BUILDING
[builder] === Python - Runtime<EMAIL_ADDRESS>===
[builder] Python version not specified, using the test available version.
[builder] 2022/12/02 10:17:02 [DEBUG] GET https://dl.google.com/runtimes/python/version.json
[builder] 2022/12/02 10:17:32 [ERR] GET https://dl.google.com/runtimes/python/version.json request failed: Get "https://dl.google.com/runtimes/python/version.json": dial tcp <IP_ADDRESS>:443: i/o timeout
[builder] 2022/12/02 10:17:32 [DEBUG] GET https://dl.google.com/runtimes/python/version.json: retrying in 1s (3 left)
[builder] 2022/12/02 10:18:03 [ERR] GET https://dl.google.com/runtimes/python/version.json request failed: Get "https://dl.google.com/runtimes/python/version.json": dial tcp <IP_ADDRESS>:443: i/o timeout
[builder] 2022/12/02 10:18:03 [DEBUG] GET https://dl.google.com/runtimes/python/version.json: retrying in 2s (2 left)
[builder] 2022/12/02 10:18:35 [ERR] GET https://dl.google.com/runtimes/python/version.json request failed: Get "https://dl.google.com/runtimes/python/version.json": dial tcp <IP_ADDRESS>:443: i/o timeout
[builder] 2022/12/02 10:18:35 [DEBUG] GET https://dl.google.com/runtimes/python/version.json: retrying in 4s (1 left)
[builder] 2022/12/02 10:19:09 [ERR] GET https://dl.google.com/runtimes/python/version.json request failed: Get "https://dl.google.com/runtimes/python/version.json": dial tcp <IP_ADDRESS>:443: i/o timeout
[builder] Failure: (ID: a800fcc9) fetching Python versions: requesting https://dl.google.com/runtimes/python/version.json: Get "https://dl.google.com/runtimes/python/version.json": GET https://dl.google.com/runtimes/python/version.json giving up after 4 attempt(s): Get "https://dl.google.com/runtimes/python/version.json": dial tcp <IP_ADDRESS>:443: i/o timeout [id:65f44802]
[builder] --------------------------------------------------------------------------------
[builder] Sorry your project couldn't be built.
[builder] Our documentation explains ways to configure Buildpacks to better recognise your project:
[builder]  -> https://github.com/GoogleCloudPlatform/buildpacks/blob/main/README.md
[builder] If you think you've found an issue, please report it:
[builder]  -> https://github.com/GoogleCloudPlatform/buildpacks/issues/new
[builder] --------------------------------------------------------------------------------
[builder] ERROR: failed to build: exit status 1
ERROR: failed to build: executing lifecycle. This may be the result of using an untrusted builder: failed with status code: 51

The machine is able to connect to https://dl.google.com/runtimes/python/version.json, but a 404 page is returned
$ curl https://dl.google.com/runtimes/python/version.json

<!DOCTYPE html>

  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>

404. That’s an error.

  That’s all we know.

Works fine in my environment, cannot reproduce:
pack build python-sample --builder openfunction/gcp-builder:v1 --env GOOGLE_FUNCTION_TARGET=hello_world
v1: Pulling from openfunction/gcp-builder
Digest: sha256:3c059c0cc83c98b43fc947f470162720a7b59dd45a7dd38af1c1f4ee54a24794
Status: Image is up to date for openfunction/gcp-builder:v1
v1: Pulling from buildpacks/gcp/run
Digest: sha256:4ba3727b3c1527ecb81e5e84db9447fd955859868c52d7b41bca97a1f6df4b9b
Status: Image is up to date for gcr.io/buildpacks/gcp/run:v1
0.13.3: Pulling from buildpacksio/lifecycle
Digest: sha256:9d194fc3997e8c448473431433908d932cd359b10b270f2b0f76ec795c8cae28
Status: Image is up to date for buildpacksio/lifecycle:0.13.3
===> ANALYZING
[analyzer] Previous image with name "python-sample" not found
===> DETECTING
[detector] 4 of 5 buildpacks participating
[detector] google.python.runtime             0.9.1
[detector] google.python.functions-framework 0.9.6
[detector] google.python.pip                 0.9.2
[detector] google.utils.label                0.0.2
===> RESTORING
===> BUILDING
[builder] === Python - Runtime<EMAIL_ADDRESS>===
[builder] Python version not specified, using the test available version.
[builder] 2022/12/06 02:18:48 [DEBUG] GET https://dl.google.com/runtimes/python/version.json
[builder] Installing Python v3.10.5.
[builder] 2022/12/06 02:18:49 [DEBUG] GET https://dl.google.com/runtimes/python/python-3.10.5.tar.gz
[builder] Upgrading pip to the latest version and installing build tools
[builder] --------------------------------------------------------------------------------
[builder] Running "/layers/google.python.runtime/python/bin/python3 -m pip install --upgrade pip setuptools wheel"
[builder] Requirement already satisfied: pip in /layers/google.python.runtime/python/lib/python3.10/site-packages (22.0.4)
[builder] Collecting pip
[builder]   Downloading pip-22.3.1-py3-none-any.whl (2.1 MB)
[builder]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 5.4 MB/s eta 0:00:00
[builder] Requirement already satisfied: setuptools in /layers/google.python.runtime/python/lib/python3.10/site-packages (58.1.0)
[builder] Collecting setuptools
[builder]   Downloading setuptools-65.6.3-py3-none-any.whl (1.2 MB)
[builder]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 13.2 MB/s eta 0:00:00
[builder] Collecting wheel
[builder]   Downloading wheel-0.38.4-py3-none-any.whl (36 kB)
[builder] Installing collected packages: wheel, setuptools, pip
[builder]   Attempting uninstall: setuptools
[builder]     Found existing installation: setuptools 58.1.0
[builder]     Uninstalling setuptools-58.1.0:
[builder]       Successfully uninstalled setuptools-58.1.0
[builder]   Attempting uninstall: pip
[builder]     Found existing installation: pip 22.0.4
[builder]     Uninstalling pip-22.0.4:
[builder]       Successfully uninstalled pip-22.0.4
[builder] Successfully installed pip-22.3.1 setuptools-65.6.3 wheel-0.38.4
[builder] Done "/layers/google.python.runtime/python/bin/python3 -m pip inst..." (13.052782332s)
[builder] === Python - Functions Framework<EMAIL_ADDRESS>===
[builder] --------------------------------------------------------------------------------
[builder] Running "python3 -m compileall -f -q ."
[builder] Done "python3 -m compileall -f -q ." (119.422341ms)
[builder] Handling functions with dependency on functions-framework.
[builder] WARNING: Launch layer is setting default=true, but that is not supported until API version 0.6. This setting will be ignored.
[builder] Warning: Warning: default processes aren't supported in this buildpack api version. Overriding the default value to false for the following processes: [web]
[builder] === Python - pip<EMAIL_ADDRESS>===
[builder] Installing application dependencies.
[builder] --------------------------------------------------------------------------------
[builder] Running "python3 -m pip install --requirement requirements.txt --upgrade --upgrade-strategy only-if-needed --no-warn-script-location --no-warn-conflicts --force-reinstall --no-compile --user (PIP_CACHE_DIR=/layers/google.python.pip/pipcache PIP_DISABLE_PIP_VERSION_CHECK=1)"
[builder] Collecting functions-framework==1.4.3
[builder]   Downloading functions_framework-1.4.3-py3-none-any.whl (21 kB)
[builder] Collecting markupsafe==2.0.1
[builder]   Downloading MarkupSafe-2.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (30 kB)
[builder] Collecting click<8.0,>=7.0
[builder]   Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
[builder]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.8/82.8 kB 904.9 kB/s eta 0:00:00
[builder] Collecting flask<2.0,>=1.0
[builder]   Downloading Flask-1.1.4-py2.py3-none-any.whl (94 kB)
[builder]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.6/94.6 kB 1.5 MB/s eta 0:00:00
[builder] Collecting gunicorn<21.0,>=19.2.0
[builder]   Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
[builder]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.5/79.5 kB 1.6 MB/s eta 0:00:00
[builder] Collecting watchdog>=0.10.0
[builder]   Downloading watchdog-2.2.0-py3-none-manylinux2014_x86_64.whl (78 kB)
[builder]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.7/78.7 kB 1.1 MB/s eta 0:00:00
[builder] Collecting Werkzeug<2.0,>=0.15
[builder]   Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
[builder]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 298.6/298.6 kB 2.9 MB/s eta 0:00:00
[builder] Collecting itsdangerous<2.0,>=0.24
[builder]   Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
[builder] Collecting Jinja2<3.0,>=2.10.1
[builder]   Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
[builder]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.7/125.7 kB 3.0 MB/s eta 0:00:00
[builder] Collecting setuptools>=3.0
[builder]   Downloading setuptools-65.6.3-py3-none-any.whl (1.2 MB)
[builder]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 10.0 MB/s eta 0:00:00
[builder] Installing collected packages: Werkzeug, watchdog, setuptools, markupsafe, itsdangerous, click, Jinja2, gunicorn, flask, functions-framework
[builder] Successfully installed Jinja2-2.11.3 Werkzeug-1.0.1 click-7.1.2 flask-1.1.4 functions-framework-1.4.3 gunicorn-20.1.0 itsdangerous-1.1.0 markupsafe-2.0.1 setuptools-65.6.3 watchdog-2.2.0
[builder] Done "python3 -m pip install --requirement requirements.txt --upgr..." (7.161018115s)
[builder] --------------------------------------------------------------------------------
[builder] Running "python3 -m compileall --invalidation-mode unchecked-hash -qq /layers/google.python.pip/pip"
[builder] Done "python3 -m compileall --invalidation-mode unchecked-hash -qq..." (1.978735884s)
[builder] Checking for incompatible dependencies.
[builder] --------------------------------------------------------------------------------
[builder] Running "python3 -m pip check"
[builder] No broken requirements found.
[builder] Done "python3 -m pip check" (1.082849238s)
[builder] === Utils - Label Image<EMAIL_ADDRESS>===
===> EXPORTING
[exporter] Adding layer 'google.python.runtime:python'
[exporter] Adding layer 'google.python.functions-framework:functions-framework'
[exporter] Adding layer 'google.python.pip:pip'
[exporter] Adding 1/1 app layer(s)
[exporter] Adding layer 'launcher'
[exporter] Adding layer 'config'
[exporter] Adding layer 'process-types'
[exporter] Adding label 'io.buildpacks.lifecycle.metadata'
[exporter] Adding label 'io.buildpacks.build.metadata'
[exporter] Adding label 'io.buildpacks.project.metadata'
[exporter] Setting default process type 'web'
[exporter] Saving python-sample...
[exporter] *** Images (1c147163077f):
[exporter]       python-sample
[exporter] Adding cache layer 'google.python.runtime:python'
[exporter] Adding cache layer 'google.python.pip:pip'
[exporter] Adding cache layer 'google.python.pip:pipcache'
Successfully built image python-sample

You need to provide UA to access https://dl.google.com/runtimes/python/version.json:
curl -A GCPBuildpacks https://dl.google.com/runtimes/python/version.json
["3.10.0","3.10.1","3.10.2","3.10.3","3.10.4","3.10.5","3.7.0","3.7.1","3.7.10","3.7.11","3.7.12","3.7.13","3.7.2","3.7.3","3.7.4","3.7.5","3.7.6","3.7.7","3.7.8","3.7.9","3.8.0","3.8.1","3.8.10","3.8.11","3.8.12","3.8.13","3.8.2","3.8.3","3.8.4","3.8.5","3.8.6","3.8.7","3.8.8","3.8.9","3.9.0","3.9.1","3.9.10","3.9.11","3.9.12","3.9.13","3.9.2","3.9.3","3.9.4","3.9.5","3.9.6","3.9.7","3.9.8","3.9.9"]%

Check if your network access to https://dl.google.com/runtimes/python/version.json is restricted， not on the host but in the container.


Error when deleting a source of images

Also thinking about it... I have google drive synced and maybe I moved around some folder and that caused the issue instead the delete and it was just coincidence

Strange, I can't replicate the issue

Select a fodler
Click Remove Folder
Folder is removed
Close Settings
No errors

Might have been the watch-folders running.  In that case it may have nothing to do with the settings dialog, so I'll close this for now.

Might have been the watch-folders running.  In that case it may have nothing to do with the settings dialog, so I'll close this for now.


Allow JS script tag to be inserted with SRI attributes

Currently the default behavior when instantiating AI client is to inject JS script tag in the head of the page. Modern browsers allows to verify contents of dynamically loaded scripts with subresource integrity checks making such inclusion much safer in terms of XSS attacks.
I'd like to be able to control if script element is created on the page with integrity and crossOrigin attributes so browser can verify if it's contents has not been changed.
Ideally if this could be the default behavior when AI gets loaded from CDN's url: https://az416426.vo.msecnd.net/scripts/a/ai.0.js.

You can generate the hash via https://www.srihash.org/ and modify the snippet to set the specified fields
<script type="text/javascript">
  var appInsights=window.appInsights||function(a){
      function b(a){c[a]=function(){var b=arguments;c.queue.push(function(){c[a].apply(c,b)})}}var c={config:a},d=document,e=window;setTimeout(function(){var b=d.createElement("script");
      b.src=a.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";
      b.integrity="sha384-SeVeDUKmrHkrSoenouOyjFMT4alVcWrEz3W0lTnlI4nU9qHJ/eAkxqI32j8uq/HB";
      b.crossOrigin="anonymous",
      d.getElementsByTagName("script")[0].parentNode.appendChild(b)});try{c.cookie=d.cookie}catch(a){}c.queue=[];for(var f=["Event","Exception","Metric","PageView","Trace","Dependency"];f.length;)b("track"+f.pop());if(b("setAuthenticatedUserContext"),b("clearAuthenticatedUserContext"),b("startTrackEvent"),b("stopTrackEvent"),b("startTrackPage"),b("stopTrackPage"),b("flush"),!a.disableExceptionTracking){f="onerror",b("_"+f);var g=e[f];e[f]=function(a,b,d,e,h){var i=g&&g(a,b,d,e,h);return!0!==i&&c["_"+f](a,b,d,e,h),i}}return c
  }({
      instrumentationKey: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
  });

  window.appInsights=appInsights,appInsights.queue&&0===appInsights.queue.length&&appInsights.trackPageView();
</script>

Hi @markwolff, thanks for quick response.
The given code example brings to me some more doubts. Calculating SHAs on user/client side seems even more problematic.
Here're two examples for the given approach where it fails or becomes hard to maintain:

there's a new release of ai.0.js - hash changes - script doesn't load - can't collect logs
how to deal with sha change in every app in case this code is going to be used very commonly?

My main motivation and intention was to encourage for secure script referencing. ai.0.js code is already responsive for creation of the dom element, it potentially could take care of making it more secure way.
I'm totally aware it makes a huge difference in the matter of the making new releases but I'm hoping it would make also a huge impact on the security for sites using Application Insights (including projects I contribute too :)
Still hoping for enhancement tag
Thanks!


Finnish localisation of onboarding views

@drjakob Just did a quick evaluation, adding new translations should be pretty straight forward. However, as soon as we add the settings page, we’d need it to handle translations as well.
As this might make things more complicated and I could imagine #Schweinesystem might be an exception (in terms of having contributors that speak different languages), it might be sensible to

develop the new settings page without multi-language capabilities (i.e. you would only be able to manage onboarding content in a single language)
keep the current system (i.e. manage contents manually) for #Schweinesystem, as this works with multiple languages out of the box.

(Though that totally depends on wether you expect more projects to require multi-language capabilities in the near future.)

Oder um es noch mal anders zu formulieren: Es ist quasi kein Aufwand, Finnisch im aktuellen Zustand hinzuzufügen.

Perfekt. Wenn Multilanguage das beste Feature aller Zeiten ist lassen wir uns was einfallen.

Whats missing here @tillprochaska ?

@drjakob There are still a few translations missing. Apart from that, it’s ready and Robert already approved the changes:
https://github.com/tactilenews/100eyes/pull/429


Android Gboard not working

I can't input 0-255, 000000-ffffff and File Path
About File Path, I can't choose Android/data/com.sky.SkyEmu/...
Windows: Allow users to choose Users/Documents/...

I pushed some fixes so that these settings can be altered on android without keyboard input.


Various fixes

Fixes #1 and #2.

I think the change in generator.hpp will break when somebody moves the generator object - as lambda's this pointer won't change.
The rest of the changes are OK, thanks!
I don't have #2's error when I compile the project with gcc 4.9.2 in C++14 mode, what compiler do you use?

I'm using clang++ (3.6, I believe), but in C++11 mode. The README says that it's supposed to work in C++11 mode, and #2 is the only line that forces C++14 mode.
I did test the changes with the move semantics (it's the second to last test in your test.cpp). What I did originally indeed broke the move, but not what I actually submitted as the pull request. Your test passes with these changes. I don't completely understand why it works; maybe because this has a special meaning in the capture list and does not just blindly capture the pointer? I'm not 100% certain, but, like I said, your test passes.

Actually, digging around a little more, I'm not sure how this interacts with the move semantics, but that line never gets executed past the first call to coro(), which happens in that very same constructor. So this cannot change between initialization and that first call. Subsequent calls to coro() re-enter the generator context, where the previous yield() left off. In other words, I think it's safe.

I merged the changes in generator.hpp, and I've decided against fixing C++11 support.


Dependency Resolution fails with "Too many follow-up requests" (Jitpack)

[x] I've read the CONTRIBUTING guidelines

steps

Clear Ivy/Maven caches, in case the files are cached locally
build.sbt:

name := "test"
resolvers += "jitpack" at "https://jitpack.io"
credentials += sbt.Credentials("JitPack", "jitpack.io", "", ".")
libraryDependencies += "org.scalanlp" %% "breeze" % "0.13.+"

Note that using a valid Jitpack credentials will still result in the same error. We got this error with a valid credentials.

sbt clean compile

problem
It fails to download dependencies with the error below:
[error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: com.github.fommil.netlib#core;1.1.2: Resolution failed several times for dependency: com.github.fommil.netlib#core;1.1.2 {compile=[compile(*), master(compile)], runtime=[runtime(*)]}::
[error] 	Resolution failed several times for dependency: com.github.fommil.netlib#parent;1.1 {}::
[error] 	jitpack: unable to get resource for com/github/fommil/netlib#parent;1.1: res=https://jitpack.io/com/github/fommil/netlib/parent/1.1/parent-1.1.jar: java.net.ProtocolException: Too many follow-up requests: 21

 com.github.fommil.netlib#core is a dependency of org.scalanlp %% breeze. It is available in Maven Central
Jitpack seems to be returning 401 on the URL in the error message. Apparently our Jitpack account do not have access to netlib repo. We are not expecting it to download Netlib from Jitpack.
expectation
It should first try on the default Maven Central repo and download from there. It should not even query Jitpack.
Even if it asks Jitpack first, upon getting an error it should fall back to use Maven Central.
notes
We depend on some libraries only available on Jitpack, and also depend on scalanlp/breeze (available on Maven Central).
To resolve this, we need any one of these:

Ability to specify the precedence of the resolvers
Falling back to default resolvers on 401 errors
Ability to limit resolvers to resolve certain packages

sbt version: 1.2.6

Digging deeper, we realized it is the same Ivy issue as in #1138.
So our workaround is to use fullResolvers:
fullResolvers := Seq(
    DefaultMavenRepository,
    "jitpack" at "https://jitpack.io"
)


Integrate maintenance into server-side miner loop

Remove the maintain command. Instead, integrate maintenance into the server-side loop.

done


JMS: refactoring of JMSClient creation, to make possible to switch implementation

it is starting point for alternative implementation of JMSClient, I'm thinking to make one that has pool of connections in near future

Looks like a good idea.


proposal: Go 2: language: make slices of constant strings constant if the indexes are constant

This will probably be assigned a Go2 label, although I think that it could be done during Go 1.
Consider multiline string constants:
const multiline = `
This is a long text
that spans multiple lines
and then ends.
`

If you feed this text to a parser and it finds a problem on the first line ("This is a long text"), it will actually report that the error is on the second line because of the leading newline. One might think that this is easily solved by slicing the string:
const multiline = `
This is a long text
that spans multiple lines
and then ends.
`[1:]

But this won't compile. The Spec currently says:

(…) For untyped string operands the result is a non-constant value of type string. (…)

Why not make it constant? After all, len(multiline) is constant.

There are other solutions to this. One could just use multiline[1:] everywhere where one doesn't want the leading newline. Or start "This is a long text" on the first line, but that hurts readability and "editability". Another solution is to make multiline a variable. The use case is pretty obscure and there isn't an immediate need for this, so this proposal is more about a question, why are slices (and indexing!) of constant strings not constant in the first place?

I know that this has been discussed in the past but I don't remember why it wasn't changed.  Maybe simply because it rarely comes up in practice.

We should also consider accepting
const c = "abc"[1]

@thepudds

This change does not seem worth triggering the first use of the go version directive (if that is what would need to happen).

To the contrary! A minor, mostly-backward-compatible change seems like a great way to try out the mechanism without causing too much churn if it doesn't go as well as we expect.

We discussed this issue in the proposal review committee. Since this proposal is not backward-compatible and we put a premium on language stability, we decided to not proceed with this for Go 1.15.
We discussed introducing a vet check instead, but it doesn't seem warranted since this change is essentially language fine-tuning - a "nice to have" if it were backward-compatible, but not important.
I will leave this open for future consideration, when non-backward compatible changes become viable due to universal use of modules.

The degree to which a strict reading of backward compatibility leaves little room to maneuver is constantly surprising.

One more case:
_ = 1/len(""[:])

Currently it compiles, but if len(""[:]) returns 0, it will not.

This was proposed for Go 1.15 (https://blog.golang.org/go1.15-proposals) but declined because it is not backwards compatible. Leaving open for some future breaking change (maybe).

Another incompatible case:
package main

const s = "Go101.org"
// len(s) == 9
// 1 << 9 == 512
// 512 / 128 == 4

var a byte = 1 << len(s) / 128
var b byte = 1 << len(s[:]) / 128

func main() {
	println(a, b) // 4 0
}

It will print 4 4 if this proposal is adpoted.

@go101 That's diabolical.
Spoiler: the difference arises from the top-down effect of the enclosing type (byte) on the shift operator when its right operand is non-constant. Thus 1 << len(s[:]) is truncated to byte. The type rules for shifts are the most complex of all...

Given the new extended forward compatibility mechanism, this breaking change could be implemented in files that set a sufficiently high minimum Go version.


Add env vars

What

Add custom ENV variables to the EB container

Why

For some applications (e.g. Jenkings or WordPress) we need to provide custom ENV variables into the EB container, e.g. EFS host or Jenkins initial user and password

We can do this a better way. Ping me tomorrow.


[Feat]: Toolbar Buttons widget horizontal alignment

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Allow users to align button in Toolbar widget left or right.
E.g. in case on the screenshot I would like to be able to align all buttons to the right.

We can reuse the 'position' control (screenshot from Statbox's property pane):

Public Sample App
No response
Environment
Deploy Preview
Severity
Medium (Frustrating UX)
Issue video log
No response
Version
cloud

As I know, we don't need it. Taras correct me.

I do see Natasha's point. Let's add the alignment, it might be handy in some scenarios.

Please add your planning poker estimate with Zenhub @jsartisan


gcp.Provider.isInstance always returns false

What happened?
At least in nodeJs (didn't tested others) the gcp.Provider.isInstance function seem to always return false even when provided a proper gcp.Provider instance.
Expected Behavior
gcp.Provider.isInstance function should return true when provided an instance of gcp.Provider.
Steps to reproduce
With the following pulumi program:
import * as gcp from '@pulumi/gcp';

const gcpProvider= new gcp.Provider("default");
console.log('isInstance', gcp.Provider.isInstance(gcpProvider))

A pulumi preview shows inInstance false while it should show isInstance true
Output of pulumi about
CLI
Version      3.55.0
Go Version   go1.19.5
Go Compiler  gc
Plugins
NAME        VERSION
aws         4.5.1
gcp         6.50.0
kubernetes  3.21.4
nodejs      unknown
postgresql  3.0.1
random      4.1.1
tls         4.10.0
Host
OS       darwin
Version  12.1
Arch     x86_64
This project is written in nodejs: executable='/usr/local/bin/node' version='v14.19.3'
Current Stack: ####
Found no resources associated with test
Found no pending operations associated with test
Backend
Name           pulumi.com
URL            https://app.pulumi.com/mleclercq
User           mleclercq
Organizations  mleclercq, automat-ai
Dependencies:
NAME                              VERSION
@types/node                       12.20.46
@typescript-eslint/parser         2.6.1
eslint-plugin-prettier            3.1.1
eslint                            6.6.0
prettier                          1.19.1
typescript                        3.9.10
@types/js-base64                  2.3.2
@typescript-eslint/eslint-plugin  2.3.1
eslint-config-prettier            6.5.0
js-base64                         2.6.4
nano                              8.2.2
Additional context
Looking at how gcp.Provider.isInstance is implemented:
https://github.com/pulumi/pulumi-gcp/blob/e970ef2fc800c841a8518a0d8398999eeaf02a1a/sdk/nodejs/provider.ts#L23-L28
It looks for the __pulumiType property on the given object and check if it is equals to "gcp" but it looks like this property has value `"pulumi:providers:gcp"' according to:
console.log('__pulumiType', (gcpProvider as any)['__pulumiType'])

So looks like the following line should be changed:
https://github.com/pulumi/pulumi-gcp/blob/e970ef2fc800c841a8518a0d8398999eeaf02a1a/sdk/nodejs/provider.ts#L17
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

I verified that this is fixed by https://github.com/pulumi/pulumi/issues/12584 with the latest version of the provider


Added RetrieveAddresses() function and modified CreateListenSocket() …

…/ CreateListenSocketInternal()
Added RetrieveAddresses() function and modified CreateListenSocket and CreateListenSocketInternal() to include a specified ip address to bind to (by directing getaddrinfo() to look for a specific IP address instead of NULL, which seems to stop at the first default address, which if an IPv6 address, means we cannot create a listen socket if the system is IPv4)

This is part of a dirty attempt to get a list of IP addresses on the PC and return them (as a string with each IP address on a new line... because I don't know how else to do it), and then be able to specify whichever one of these we choose when creating a listening socket to bind to a specific IP address instead of being at the mercy of whichever one getaddrinfo() finds first. At least I think that's how it works.


Era5Land use case 1 revision

Notebook description
- Download 2m temperature variable (K) selecting the boundary box area of Spain.
- Choose years of analysis: here we selectef from 1997 to 2022
- Calculate the average annual temperature for the entire Country
- Changing units of measure from Kelvin to Celsius
- Barplot grouped for year with annual temperature values
- Trend and significance with Mann Kendall Test

Notebook link or upload
ERA-5Land_Temperature_rev.zip
Anything else we need to know?
Hi mattia,
I have to modify a bit the notebook. here some points:

I have problem with the warning package
I would like to add the values in the barplot, to replicate this plot: https://www.statista.com/statistics/1199822/average-monthly-temperature-spain/
There is an error to calculate the trend and significance with Mann Kendall test, maybe it is linked to some packages? It was working before

Thank you
Environment

I've updated the template with the new features you need: https://github.com/bopen/c3s-eqc-toolbox-template/blob/main/notebooks/wp5/era5_land_temperature.ipynb
Please test it out and let me know.
I you want to silence warnings (I do not recommend doing it unless warnings are very noisy), you need to import the warnings package.
import warnings
warnings.simplefilter("ignore")

Thank you.
I have still this error when running the Mann Kendall test:

You probably need to restart the kernel

Sorry Mattia, how I can not display the numbers?

Sorry Mattia, how i can not display the numbers?
That part with: text and numbers

jupyter prints the last variable the last values that are not assigned.
In your case, the text objects. So you just have to assign the variable.
For exmaple, if you don't need it:
_ = ax.bar_label(ax.containers[0], rotation=90)

or if you need it:
bar_text_objects = ax.bar_label(ax.containers[0], rotation=90)

BTW, there's a padding argument as well, and many others.
I've only added a minimal example, you can get more info in matplotlib documentation, or (help(ax.bar_label))


Migrate tokio-core -> tokio 0.2.

This should enable a migration to newer version of other deps like reqwest in the future.

Have you looked at #158?

I wasn't sure how to fix it. But yet, that is essentially what I want. :)

Oh, And I was trying to do it in piecewise moves instead of all at once.

In hindsight, #158 probably could have benefited from smaller steps, but in the end it would be difficult to cherry-pick because the different changes build on each other.


Fixes required in the spreadsheet of metadata

@mdozmorov, @Krithika-Bhuvan
Some notes regarding the metadata spreadsheet: https://docs.google.com/spreadsheets/d/1tGtGffcbCRxQFjE3ej42IcWlN4FJCsuQeZvETt9g0oA/edit#gid=0

I noticed  that the field authors only include one author and et al in the table of metadata. I think that all authors should be included in this field since we have the information.

Sometimes the information is mixed (see c3e5b3a and lines 27 and 28 in the metadata table). We should fix these in the tables and in the data yaml. And look for other cases.

Affiliations are missing for some authors in the table.

Thanks. Fixed #2 on the excel. Thanks for updating the yaml. For #3, the affiliation is missing in the abstract file. It says "Senior Data Scientist" which is a job role and not affiliation.
For #1, this is what I was referring to in our Tuesday meeting. Mikhail said to leave it as it is since the current system was working just fine.

I think all of these have been fixed. I'm closing this issue.

Thanks, Samuel, Krithika!


Added parentheses in TimeAmount constructors to generate optimal code…

…. As Per issue #1249
Motivation:
For better codegen for TimeAmount struct.
After this change overflow will not be checked at each multiplication stage.
Modifications:

Added parentheses in static constructors of TimeAmount

Result:
No change logically except better codegen

@swift-nio-bot test this please

@swift-nio-bot perf test this please

@swift-nio-bot test this please


IOS: Invariant Violation: requireNativeComponent: "RNCWKWebView" was not found in the UIManager.

hi
started getting this since yday and tried all sorts of thing to get rid of it delete node moduled, iod build folders, derived data, Pods folder, build from both xcode and cmd line but still persists.
App build ok but opening any website give that red screen.
using cocoapods and
webview version 7.0.5,
latest react native and xcode.
Any solution for this ?
thank you
Invariant Violation: Invariant Violation: requireNativeComponent: "RNCWKWebView" was not found in the UIManager.
This error is located at:
in RNCWKWebView (at WebView.ios.js:288)
in RCTView (at View.js:35)
in View (at WebView.ios.js:291)
in WebView (at CredoWebView.js:98)
in RCTView (at View.js:35)
in View (at CredoWebView.js:92)
in RCTView (at View.js:35)
in View (at CredoWebView.js:78)
in RCTView (at View.js:35)
in View (at AppContainer.js:98)
in RCTView (at View.js:35)
in View (at AppContainer.js:115)
in AppContainer (at Modal.js:244)
in RCTView (at View.js:35)
in View (at Modal.js:264)
in RCTModalHostView (at Modal.js:252)

I've also experiencing this error when using 7.0.5 - I have my project running on two different machines. On one machine it works fine on the other I get the above error. No idea how to solve it as both are identical.
Is there some extra commands needed to clear a cache or something? Have deleted all node_modules, ran pod install etc and still get this error.

i think it's a linking error
try react-native link react-native-webview

same thing:

I struggle with the same issue, and at this moment, I haven't found a solution yet.

i think it's a linking error
try react-native link react-native-webview

We are using react-native version 0.60.3 so linking is not required. Did not have this issue before until recently upgrading to version 7.0.5

Have you installs pods ?
cd ios pod install
I have done it and it works on v7.0.7  with react-native v0.60.5

In my case, i have an app which depends on library. I've updated react-native-webview version in app and forgot to update in library. So when i updated react-native-webview in lib the issue is gone.
RN 0.60.5, react-native-webview 7.2.5

This appears to be the weirdest caching issue I've seen in a long time.
Starting from release 7.0.1 RNCWKWebView was renamed to RNCWebView on iOS. So far, so clear: the build system is still looking for the old name and isn't finding it - it's probably cached somewhere.
So I deleted and regenerated (in increasing order of desperation): node_modules, ios/Pods, ios/build, full Xcode project clean, all Watchman, npm, and Metro bundler caches, Xcode Derived Data folder, and the iOS simulator itself. No luck.
Eventually I dug into node_modules/react-native-webview/lib/ just to be absolutely sure that Webview.ios.js definitely doesn't have an old reference to RNCWKWebView - all looked fine, so I added a few debug print statements, at which point the build immediately started working. Then I removed the statements again (putting the file back how it was originally) and it still worked fine.
All I can think is that saving the file forced a reload on whatever was watching the file and cleared out the copy of the old version. I don't know how or where that old version was stored, or why it wasn't cleared when every piece of transient data I could think of was wiped, but at least the build is working again now!

i think it's a linking error
try react-native link react-native-webview

We are using react-native version 0.60.3 so linking is not required. Did not have this issue before until recently upgrading to version 7.0.5

I finally got it working and here's all of the steps I took:
1. Install Packages
npm react-native@latest
npm react@latest
2. Generate iOS/Android folders
react-native upgrade --legacy true
3. Install CocoaPods
cd ios
pod install
4. Link react-native-webview
react-native link react-native-webview
5. Start NPM
npm start --reset-cache
6. Start Simulator
react-native run-ios --simulator="iPhone 11 Pro"

Strange! A System reboot solved it!

I was able to work around this problem by switching to a different iOS simulator. I did not reboot, but letting my Mac sleep overnight (about 14 hours) fixed the problem entirely.

###1.将RNCWebView.xcodeproj添加到项目的Libraries中， 用Xcode打开项目，在librarie右键点击add Files to 项目中
###2.在Build Phases的Link Binary With Libraries中添加libRNCWebView.a文件

~Got this error, using RN v0.60.5 and RNWebview v7.0.7 I tried all solution I found here but no luck~
~I check the older version and RNCWKWebView file still not remove. but for v7.0.7 this module has been remove. Can anyone know why still I get this error? thanks~
Fixed: Stupid, I just need to reboot my Mac and fix the issue.
that work for me. just restart the visual code

I'm having this issue. I've tried cleaning Build, reboot Mac and restart VScode. Nothing works.
React Native: 0.59.9
react-native-webview: 10.10.2


Create a default HNCConfiguration singleton when starting HNC if the singleton does not exist

This PR creates a default HNCConfiguration singleton when starting HNC if the singleton does not exist. The feature is achieved by adding a channel in reconciler watch to trigger the reconciliation at startup. The reconciliation will ensure the default singleton will be created if it does not exist.
Tested: GKE cluster; unit tests.
Design doc: http://bit.ly/hnc-type-configuration
Issue: #411

/ok-to-test
/lgtm
/approve
/hold
/assign @rjbez17

Hi @rjbez17
Feel free to take a look at this PR when you have time. Adrian and Yiqi did the first round of the code review. Since I have a chain of PRs for review, it would be great if we can merge this in to reduce the code review burden for subsequent PRs.
Thanks so much for your help!
Sophie

/lgtm
/approve
/hold cancel

/hold
Holding it since #462 that contained changes in this PR was already merged. We should probably consider close this PR.

Close this PR because the changes are already merged in #462

Close this PR because the changes are already merged in #462


Updated DED crashed on Ubuntu 22

I recently built DED with the new changes (clipboard and runtime shader updates) but it crashes when I try to open a file or even the text editor itself.
./ded src/main.c
Loading src/main.c
GL version 3.3
ERROR: could not load glyph of a character with code 32

The previous version worked like a charm. If anyone can help I would really appreciate it. Thanks to Tsoding for this wonderful project.

Same here. My guess it's that libfreetype-dev is too old for the new SDF font rendering stuff.
My Mint install comes with v2.11, and the new documented minimum is 2.13.

Try running sed 's/\r$//' build.sh > out.sh and then running ./out.sh to build. IDK the new version is working for me, after being able to build it. Old versions did not have these issues though. @eloj try updating your packages and then building the new version. Out of date stuff probably has an update on your package manager. If not you could build that from source as well, though good luck with that.

No, there are no updated packages. My dist is built on Ubuntu 22.04 LTS (Jammy), which comes with freetype 2.11, and will only see security updates.
Obviously I can build from freetype from source. I was just giving OP the easiest way forward.
There's nothing wrong with the line endings of the build script, so your sed does nothing, and neither I nor OP have any problems building.
$ git restore build.sh
$ sed 's/\r$//' build.sh > out.sh
$ sha256sum build.sh out.sh
f9668b6d6948b6bb84cf1db8f5fc4a0f96373f03b9f752f76c478f1862a65e8b  build.sh
f9668b6d6948b6bb84cf1db8f5fc4a0f96373f03b9f752f76c478f1862a65e8b  out.sh

Anyway, I went back to investigate @vultureofficial, and it's indeed a bug with the space character (32) specifically, so you can do the following and get nicely scaled and rendered SDF fonts even on the older libfreetype:
diff --git a/src/free_glyph.c b/src/free_glyph.c
index 041a2a3..1df8f36 100644
--- a/src/free_glyph.c
+++ b/src/free_glyph.c
@@ -4,7 +4,7 @@

 void free_glyph_atlas_init(Free_Glyph_Atlas *atlas, FT_Face face)
 {
-    FT_Int32 load_flags = FT_LOAD_RENDER | FT_LOAD_TARGET_(FT_RENDER_MODE_SDF);
+    #define load_flags (i > 32 ? FT_LOAD_RENDER | FT_LOAD_TARGET_(FT_RENDER_MODE_SDF) : FT_LOAD_RENDER)
     for (int i = 32; i < 128; ++i) {
         if (FT_Load_Char(face, i, load_flags)) {
             fprintf(stderr, "ERROR: could not load glyph of a character with code %d\n", i);

I noticed it takes a lot longer to start up -- multiple seconds before you can type -- but it does work.

@eloj This solution seems to work like a charm for me as well, though it does take significantly longer to load. @vultureofficial try those fixes and see if it works for you as well. Perhaps this change should be merged into main? I'm not sure here.


Add "lamb" to str2optimizer32bit

LAMB was missing in str2optimizer32bit.

LGTM! I see the same issue exists for LARS too.

Had a look again at bitsandbytes/optim and it appears it's not just LARS but many other optimizer variants as well.

Hello! Is there currently any workaround for this issue, while this is being reviewed.

@EtienneDosSantos, really good catch and ready to merge. Thank you!
It so helpful if attentive members from the community take a hand-on approach like you and help us improve things. Super grateful for that!
Always happy to get future contributions from you as well :) Don't hesitate to tag me personally if you need input on anything or something catches your attention that is high impact and shouldn't be overlooked.

@skku-daniilkim I'll do a patch release in the next days, hopefully by early next week at latest.
For now you can see where BNB is installed and manually edit the files in the same way that you see in the diff of this PR. To find the install location you can do this:
In [1]: import inspect

In [2]: import bitsandbytes

In [3]: pkg_location = inspect.getfile(bitsandbytes)

In [4]: print(pkg_location)
/opt/conda/envs/bnb/lib/python3.8/site-packages/__init__.py

Then find the right file in the package directory structure of course.


Applying types to functions

Hi,
I'm trying to set the prototype for a function located at 0x31320. I'm using the from_c and set_at methods of BipType, but I'm still unable to set the type successfully. Am I doing something wrong or is it a current limitation of Bip itself?
pv = BipType.from_c("EFI_STATUS (*)(EFI_HANDLE, void *, void *, UINTN *)")

pv.set_at(0x31320)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-66-cd6f4f1c5d54> in <module>
----> 1 pv.set_at(0x31320)

C:/Users/carlsbad/AppData/Roaming/Hex-Rays/IDA Pro/plugins\bip\base\biptype.py in set_at(self, ea, flags)
    145         """
    146         if not apply_tinfo(ea, self._get_tinfo_copy(), flags):
--> 147             raise RuntimeError("Unable to set type {} at address {}".format(self.str, ea))
    148
    149     @staticmethod

RuntimeError: Unable to set type EFI_STATUS (__fastcall *)(EFI_HANDLE, void *, void *, UINTN *) at address 201504

Thanks! 🙏

Hello,
So the error you got is for indicating that IDA (the apply_tinfo is the one from IDA) did not succeed in setting the type. There can be several reasons why this would happen, the two most common are because the address given is not "correct" (in general it would because in the middle of a defined element in IDA) or because the type is not correct.
In your case I believe this is a problem with the type: when you do pv = BipType.from_c("EFI_STATUS (*)(EFI_HANDLE, void *, void *, UINTN *)") this will define a function pointer (BTypePtr object pointing on a BTypeFunc object), for defining a function you would want directly the function type ( BTypeFunc object) which you can get with pv = BipType.from_c("EFI_STATUS (f)(EFI_HANDLE, void *, void *, UINTN *)")  (the name f is not important, you can make it what you want, but you will have to put one for the IDA parser to work).
I believe that just changing that should make you code works. You might have problems with hexrays (if you are using it) because the synchronization between the types is wierd. Hopefully what you are doing should work fine but you might want to check it.
Tell me if this work for you and by the way thank you for adding support of SMM_Code_Chk_En in chipsec :)

I hope the previous comment allowed you to fix your problem. I am closing this, do not hesitate to re-open if it did not fix your problem or if you have another issue.

Thanks, works like a charm! 🙏


bug: rename itemtag to description

I forgot to rename this here after I renamed it in tree-sitter-org
Bonus fix, enter in listitems if the cursor is between the bullet and the item
I wrote test cases for both of them.

Thanks!


Search is keep searching and only find entities from open files

Issue Type: Bug
just search any keyword.
it will only search keyword in open file, rest remain unsearched.
and keep on searching for hours and hours.
VS Code version: Code 1.60.2 (7f6ab5485bbc008386c4386d08766667e155244e, 2021-09-22T12:00:31.514Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-4310U CPU @ 2.00GHz (4 x 2594)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.91GB (4.82GB free)

Process Argv
--crash-reporter-id eabccd49-7673-44ea-bad5-058c07a868d5

Screen Reader
no

VM
0%

Please review the advice at https://github.com/microsoft/vscode/wiki/Search-Issues
In particular, make sure you haven't toggled the button to limit search to open files only.


After using power button, NoSleep stops working.

Hello. Using your demo page, if I hit the power button on my phone to turn it off, then turn it back on, screen lock is re-enabled. I expected that since a user event is required to enable NoSleep, however, if I then manually disable and re-enable NoSleep, the screen still turns off after a minute or so. I'm using Safari on an iPhone 6, IOS 12.4.3.
I'm currently solving this by re-instantiating NoSleep and requiring the user to click in the app to re-enable it. Is the first instance of NoSleep / the first video kept in memory though?
window.addEventListener("blur", function(event){
	if(appRunning) {
		stopApp(); // disables noSleep
		noSleep = new NoSleep();
	}
});

Proposed solution: On blur, within the NoSleep instance itself, automatically disable NoSleep, remove the old video element, and create a new video element.

I solve the problem like this
document.addEventListener('visibilitychange', function () { handleVisibilityChange(noSleep) })

function handleVisibilityChange (noSleep) {
  if (document.hidden) {
    noSleep.disable()
  } else {
    document.addEventListener('click', function enableNoSleep () {
      document.removeEventListener('click', enableNoSleep)
      noSleep.enable()
    })
  }
}

I have same problem on ipad 14.6  but is ok on version 14.4,
I used  window.addEventListener("blur", function(event){
noSleep = new NoSleep();
noSleep.enable();
});
to create new instance and enable it , it still does not work on ipad Pro v14.6
who have any suggstion .


firebase_ui_oauth: Pre-compile svg icon assets using vector_graphics_compiler

Discussed in https://github.com/firebase/FirebaseUI-Flutter/discussions/240

Originally posted by aebrahim January  4, 2024
The social login icons are packaged as strings containing the raw svg, which are then rendered using flutter_svg. However, under the hood, using flutter_svg means also including its dependency vector_graphics_compiler with the application, which at runtime converts raw svg to a compiled VectorGraphic to display.
Given that the svg string is known at build time, it is possible to pre-compile it as a VectorGraphic at build time. Advantages:

Would no longer pull in the vector_graphics_compiler dependency, which adds ~180 KB to the build.
Slightly more efficient runtime as the precompiled VectorGraphic can be a const.

This issue still requires attention - flutter_svg is still listed as a dependency at the current version here: https://github.com/firebase/FirebaseUI-Flutter/blob/93bfe605d9b45fe14c2b7a37567618d88e7f49b2/packages/firebase_ui_oauth/pubspec.yaml


feat(cms-base): Improve CmsElementImage

Description

Add missing srcset attribute to image tag in the CmsElementImage component. as well as adding support for html video elements as in Shopware administration it is possible for users to assign videos to any cms image element.
Type of change

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

Screenshots (if applicable)

Additional context

@BrocksiNet - tbh i'm kinda new to github actions.... could you or someone help me to solve the first step?

Hmmm I was researching a bit and it sounds for me that this is not working because you do not have all permissions that are needed. I created the same PR from my account and tested changing permissions to see if read would be enough.
Anyway I can not look into these deeper because I am not a Admin for this Repo :joy: So maybe @patzick or @kstala we should have a look that PR title check can also run for open-source contributions or users that are not in these repo with write access for statuses. Thx.

That would be great. We are currently working on a project with Shopware frontends and have some changes and features that could be useful for others.


DO NOT MERGE: Testing to find an error being seen on CI runs

Windows CI is seeing the following errors during cleanup:
01:05:33
01:05:33 Command: d:\CI\CI-78bcec9\binary\docker.exe rm -fv 7f7995ecef82 3550b04634cf
01:05:33 ExitCode: 1, Error: exit status 1
01:05:33 Stdout: 7f7995ecef82
01:05:33
01:05:33 Stderr: Error response from daemon: Driver windowsfilter failed to remove root filesystem 3550b04634cf62135f44071b1a0cb727c406fd6557e76f38d27711cfed8a4e0f: unexpected value returned from hcs
01:05:33
01:05:33
01:05:33 Failures:
01:05:33 ExitCode was 1 expected 0
01:05:33 Expected no error

This is a bug fix in hcsshim to figure out what the error is, as I can't repro locally. It will need to be vendored in, but for now this is to figure out the real error is so I can fix it.
Signed-off-by: Darren Stahl<EMAIL_ADDRESS>

I've got what I need from this. Will open a PR with a bugfix and workaround soon.


Adding configurable MetricFilter

Added a configuration key for specifying custom MetricFilters
Added NotificationTimerFilter to filter out the reporting of MetricContext.notificationTimer
Fixed a dangling MetricContext in InstrumentedConverterBase

My original approach was to make the creation of the notificationTimer configurable but that turned out to be difficult given the current handling of config keys, so I added the MetricFilter for now since it will probably be a useful feature in other scenarios too.
@ibuenros can you review?

@ibuenros read through your comments and the design doc. The approach you suggest didn't sound too difficult so I went ahead and implemented it (PR is updated with the suggested approach). I haven't added any javadocs or unit tests yet because I want to make sure the approach is right first. If this approach looks good, I will update the java docs and unit tests

@ibuenros updated. MetricTypeFilter now takes in a List of Metrics rather than regex.

Actually, for metric type, it might be easier to do the filtering in the ScheduledReporter itself. The report method calls report(counters, meters, ...), so for each argument you could have a switch statement
report(metricTypesToReport.contains(Counter) ? context.getCounters(this.filter) : new ArrayList<>(), ...).

Is there a benefit to doing the filtering in ScheduledReporter itself vs. using MetricFilter? The advantage of the current approach is that all metric filtering is done through a single interface, MetricFilter.

It is more efficient (check only once per metric type, instead of checking every single metric), and imo easier to understand, but that's debatable.
The other approach is fine. Just a suggestion, instead of doing string comparison, consider using class comparison (e.g. metric instanceof Counter).

Updated, added unit tests and java docs.

LGTM


Merge index management to index-operation-common

Signed-off-by: suzhou<EMAIL_ADDRESS>Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #509 (e381d96) into index-operation-common (f3fb5d9) will increase coverage by 3.31%.
The diff coverage is n/a.

@@                    Coverage Diff                     @@
##           index-operation-common     #509      +/-   ##
==========================================================
+ Coverage                   52.21%   55.53%   +3.31%
==========================================================
  Files                         219      231      +12
  Lines                        6885     7662     +777
  Branches                     1160     1347     +187
==========================================================
+ Hits                         3595     4255     +660
- Misses                       3023     3097      +74
- Partials                      267      310      +43

Impacted Files
Coverage Δ

...oards-plugin/public/pages/Indices/utils/helpers.ts
40.32% <0.00%> (-59.68%)
:arrow_down:

...ublic/pages/Indices/containers/Indices/Indices.tsx
82.50% <0.00%> (-3.62%)
:arrow_down:

.../pages/Indices/containers/IndicesActions/index.tsx
89.18% <0.00%> (ø)

...s/components/DeleteIndexModal/DeleteIndexModal.tsx
100.00% <0.00%> (ø)

...c/pages/CreateIndex/containers/IndexForm/index.tsx
89.58% <0.00%> (ø)

...pages/CreateIndex/components/AliasSelect/index.tsx
100.00% <0.00%> (ø)

...IndexDetail/containers/IndexDetail/IndexDetail.tsx
74.74% <0.00%> (ø)

...lic/pages/Indices/containers/IndexDetail/index.tsx
80.00% <0.00%> (ø)

...CreateIndex/components/IndexDetail/IndexDetail.tsx
82.11% <0.00%> (ø)

...ces/components/CloseIndexModal/CloseIndexModal.tsx
100.00% <0.00%> (ø)

... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


More fixes for v5x

@dagar - lets get this in

@dagar - Thanks forgot that one (was on master_v5x_sensors)


No bandwidth-based admission control

OSCARS will happily (as far as I can tell) attempt to create a circuit requesting 1Tbps of bandwidth, despite the fact that we have no such links (or laggs) in our network.  I would have expected this to return an error of some sort.
hattori:oscars-newtech% core/src/test/python/make-circuit.py --id test5 --bitrate 1000000 --aport lbl-mr2:xe-0/2/0 --zport bnl-mr2:xe-2/0/0
hattori:oscars-newtech% core/src/test/python/list-circuit.py --id test5
{"id":2727,"connectionId":"test5","states":{"resv":"IDLE_WAIT","prov":"INITIAL","oper":"ADMIN_DOWN_OPER_DOWN"},"schedule":{"submitted":1489783757,"setup":1489783757,"teardown":1489787357},"reservedSchedule":[],"specification":{"id":2730,"version":0,"username":"some user","description":"fdsafasd","containerConnectionId":"test5","scheduleSpec":{"startDates":[1489783757],"endDates":[1489787357],"minimumDuration":0},"requested":{"id":2731,"vlanFlow":{"id":2733,"junctions":[],"pipes":[{"id":2734,"aJunction":{"id":2735,"deviceUrn":"lbl-mr2","junctionType":"REQUESTED","fixtures":[{"id":2736,"portUrn":"lbl-mr2:xe-0/2/0","vlanId":2736,"vlanExpression":"2-4094","fixtureType":"REQUESTED","inMbps":1000000,"egMbps":1000000}]},"zJunction":{"id":2737,"deviceUrn":"bnl-mr2","junctionType":"REQUESTED","fixtures":[{"id":2738,"portUrn":"bnl-mr2:xe-2/0/0","vlanId":2738,"vlanExpression":"2-4094","fixtureType":"REQUESTED","inMbps":1000000,"egMbps":1000000}]},"azMbps":0,"zaMbps":0,"azERO":[],"zaERO":[],"urnBlacklist":[],"pipeType":"REQUESTED","eroPalindromic":"PALINDROME","eroSurvivability":"SURVIVABILITY_NONE","numPaths":1,"priority":2147483647,"ajunction":{"id":2735,"deviceUrn":"lbl-mr2","junctionType":"REQUESTED","fixtures":[{"id":2736,"portUrn":"lbl-mr2:xe-0/2/0","vlanId":2736,"vlanExpression":"2-4094","fixtureType":"REQUESTED","inMbps":1000000,"egMbps":1000000}]},"zjunction":{"id":2737,"deviceUrn":"bnl-mr2","junctionType":"REQUESTED","fixtures":[{"id":2738,"portUrn":"bnl-mr2:xe-2/0/0","vlanId":2738,"vlanExpression":"2-4094","fixtureType":"REQUESTED","inMbps":1000000,"egMbps":1000000}]}}],"minPipes":1,"maxPipes":1,"containerConnectionId":"test5"},"layer3Flow":{"id":2732,"junctions":[],"pipes":[]},"containerConnectionId":"test5"}},"reserved":{"id":2740,"vlanFlow":{"id":2739,"junctions":[],"ethPipes":[],"mplsPipes":[],"allPaths":[],"containerConnectionId":"test5"},"containerConnectionId":"test5"}}

Re-tested a similar test case in the Web UI.  In that workflow, the precheck fails (as it should) with the message:
Precheck Failed: Cannot establish reservation with current parameters! Topology elements with insufficient bandwidth colored red.
So the "normal" case of someone doing reservations via the Web UI does indeed work correctly.  Leaving this issue open as it is still applicable for API clients.
(When getting the text above, there doesn't appear to be anything colored red...I'll file a separate bug for that.)

In ResvService.hold, shouldn't the part of the function that logs Reservation Unsuccessful! also throw some sort of exception?  It already does that for some situations (for example a duplicate connection ID).


[DOC] pyspark additional examples

Hello, thanks for interesting project.
Could you please provide in the documentation how to make a similar example for pyspark?
I don’t understand how to make an equivalent
qdrant_client.upsert(
    collection_name=collection_name,
    points=[
        PointStruct(
            id=str(uuid.uuid4()),
            vector=[float(x) for x in emb],
            payload={"pubid": pubid}
        )
        for pubid, emb in pubs
        if len(emb) == embedding_sz
    ]
)

Interested in this too

also how to do search query

Hai. The connector is intended for loading distributed data, so there are no plans to make it support creating collections or supporting searches.
As it is more convenient to do it separately with the necessary configs.
For upserting data, you'll have to create dataframe with your payload and embeddings to add to Qdrant. Here's a reference.
Your payload dataframe columns can be of any type and the datatypes for the upload options are mentioned here.

FYI guys, we have Pytest tests now, which can also be used as examples.
https://github.com/qdrant/qdrant-spark/blob/master/src/test/python/test_qdrant_ingest.py


Detect if user logged in using Github. If so, use their token

Link to Issue.
#167
Rest of commit message
instead of ours in Octokit.

Detection done in projects_controller, since app/lib classes
can't see the session data.
Octokit Client instance injected where it is needed via
Chief and Detective instances.

Signed-off-by: Dale Visser<EMAIL_ADDRESS>

Thanks for doing this!  I have comments, though.
The way it's currently written it always creates a GitHub client instance (in app/controllers/projects_controller.rb), even when there's no need to use Octokit.  If the users log in locally, and describe projects that don't use GitHub, I don't see the point.  Of course, if a user logs in using GitHub, we'll need to contact GitHub sometimes (at least whenever they create a new badge, since we try to helpfully provide a list.
Also, in the longer term we might provide more support other repositories - we want the code to be more flexible.  So passing in just a GitHub client through to the chief is probably not best.  Can we make this so that a GitHub client instance is only created when needed, and so that adding more repos later would be easy?

Updated pull request. Now the controller passes in a factory method, which only gets called when the client is needed, and then only if the client hasn't already been generated.

Okay, I'll take it for now.  The architecture tied to only GitHub; we eventually want to be able to support other repo systems.  But this will get us started.

Could I please urge you to do squash commits in the future? In fact, would
you be willing to have me turn off the non-squash commits?
--
Dan Kohn<EMAIL_ADDRESS>Senior Advisor, Core Infrastructure Initiative
tel:+1-415-233-1000
On Mon, Apr 18, 2016 at 5:19 PM, David A. Wheeler<EMAIL_ADDRESS>wrote:

Merged #286
https://github.com/linuxfoundation/cii-best-practices-badge/pull/286.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/linuxfoundation/cii-best-practices-badge/pull/286#event-631985102

Sorry. My usual habit is to do an interactive  rebase, and squash most intermediate commits. I rushed this once it was working.
“Science is simply common sense at its best, that is, rigidly accurate in observation, and merciless to fallacy in logic.” -- Thomas Huxley

From: Dan<EMAIL_ADDRESS>Sent: 4/18/2016 6:02 PM
To<EMAIL_ADDRESS>Cc: Dale<EMAIL_ADDRESS>Subject: Re: [linuxfoundation/cii-best-practices-badge] Detect if user logged in using Github. If so, use their token (#286)
Could I please urge you to do squash commits in the future? In fact, would
you be willing to have me turn off the non-squash commits?
--
Dan Kohn<EMAIL_ADDRESS>Senior Advisor, Core Infrastructure Initiative
tel:+1-415-233-1000
On Mon, Apr 18, 2016 at 5:19 PM, David A. Wheeler<EMAIL_ADDRESS>wrote:

Merged #286
https://github.com/linuxfoundation/cii-best-practices-badge/pull/286.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/linuxfoundation/cii-best-practices-badge/pull/286#event-631985102

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/linuxfoundation/cii-best-practices-badge/pull/286#issuecomment-211599918


Fix radiasoft/download#489: strip ABI section from qt5

libQt5Core.so only works on kernels > 3.15 (renameat2 syscall needs to be present). Doing this strip disables the check for ABI compatibility. This could result in problems when trying to make that call but in testing we didn't see any issues. See https://askubuntu.com/a/1163268 for more explanation.

https://github.com/radiasoft/container-sirepo-devbox/pull/6/commits/7e4d255597a617583634a097884eece4954223b0


Add term 'known_hosts' to vocab

This is needed for Tronador docs, where this ssh field is being mentioned

closed as its not needed


Docs UI - Fix paths to screenshots of Charts

Documentation page https://wintercms.com/docs/ui/chart

Thanks @WebVPF!

@LukeTowers These changes should be reflected at https://wintercms.com/docs/ui/chart - currently image links still broken in documentation.

@arvislacis that's because the UI docs work a bit differently than the regular docs. Fixed it, thanks!


Model Page - fix duplicate cache_key

page_first = Refinery::Page.create(:title => 'Page first', ...
child_first = page.children.create(:title => 'child', ...

page_second = Refinery::Page.create(:title => 'Page second', ...
child_second = page.children.create(:title => 'child', :skip_to_first_child => true, ...

page_first.cache_key => "refinery/en/page-first"
child_first.cache_key => "refinery/en/child"

page_second.cache_key => "refinery/en/page-second"
child_second.cache_key => "refinery/en/child"

child_first and child_second has duplicate cache_key. It makes a problem in nested_url and nested_path methods.

True.. thanks!


Addresses Eval Module Issue #604

https://github.com/cloudfoundry-incubator/cf-abacus/issues/604

Coverage decreased (-0.3%) to 91.042% when pulling cbc272b3f68df8555966f411a6d85149a9ed505e on rajkiranrbala:evalissue into 506d508426d6af5ac30c623081b0a53a739b27db on cloudfoundry-incubator:master.

Coverage decreased (-0.3%) to 91.042% when pulling cbc272b3f68df8555966f411a6d85149a9ed505e on rajkiranrbala:evalissue into 506d508426d6af5ac30c623081b0a53a739b27db on cloudfoundry-incubator:master.

Coverage decreased (-0.3%) to 91.042% when pulling cbc272b3f68df8555966f411a6d85149a9ed505e on rajkiranrbala:evalissue into 506d508426d6af5ac30c623081b0a53a739b27db on cloudfoundry-incubator:master.

Coverage decreased (-0.05%) to 91.288% when pulling cbc272b3f68df8555966f411a6d85149a9ed505e on rajkiranrbala:evalissue into 506d508426d6af5ac30c623081b0a53a739b27db on cloudfoundry-incubator:master.

Coverage decreased (-0.05%) to 91.288% when pulling cbc272b3f68df8555966f411a6d85149a9ed505e on rajkiranrbala:evalissue into 506d508426d6af5ac30c623081b0a53a739b27db on cloudfoundry-incubator:master.